Hi,

I cannot whether anyone replied to you as I'm not subscribed to gtkg-users
and the archives are horribly out of date. However, this hostiles.c hasn't
been changed for month and the code for of the relevant function is quite
simple. I can only think of reason why things could go wrong:

isspace() might (and usually is) a macro. AFAIK, it unlike other macros
it must not have side-effects but I assume in your case it has. I'd think
that's either a compiler or a problem of your libc header files. Did you
update any of them recently? I guess '--p' happens twice, so that the
'\n' triggers isspace() == true and after p is decreased twice it
overwrites the last character in this line.

You should compile GTKG and then look for the command-line which
compiled hostiles.c. Copy this line and add '-E' to it so that the
the source is only preprocessed. It would be interesting to see what
happens to line 119 in hostiles_retrieve().

If you deleted line 118-120 from hostiles.c or added a space to
all lines in hostiles.txt, this should be a possible workaround for
you as well.

Anyway, if the ctype functions/macros are not one-time-evaluation-safe
there would be a couple of lines to fix.

-- 
Christian

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to