--- old-freeciv/server/stdinhand.c Sun Mar 21 13:32:38 1999 +++ freeciv/server/stdinhand.c Tue Apr 6 21:57:33 1999 @@ -990,7 +990,8 @@ for(cptr_s=str; *cptr_s && !isalnum(*cptr_s); cptr_s++); - for(cptr_d=command; *cptr_s && isalnum(*cptr_s); cptr_s++, cptr_d++) + for(cptr_d=command; *cptr_s && isalnum(*cptr_s) && + cptr_d < command+sizeof(command)-1; cptr_s++, cptr_d++) *cptr_d=*cptr_s; *cptr_d='\0';