[comp.sources.games.bugs] TinyMUD fix

bruce@hpihoah.HP.COM (Bruce LaVigne) (02/25/90)

I have found and fixed a bug in TinyMUD where using @name to change your
character's name without specifying a password will cause a segmentation
fault.  The problem was that the routine tries to find the password using
isspace(), which at least on our systems does not check for '\0'.
The diffs to set.c are as follows:

44c48,49
< 	    for(password = newname; !isspace(*password); password++);
---
> 	    for(password=newname;(*password && !isspace(*password));password++)
> 		;

Enjoy!

-bruce