> Here, the value of c is in fact -1, but optimisations hide it.  The
> culprit is gnc_string which returns -1 in case of error, but every
> error checking in this file checks (c < -1) for some reason.

[...]

> -        return -1;
> +        return -2;

The convention in this file is that -1 signals EOF, while -2 signals an
error.  So the return value is correct, it's the handling of EOF that's
broken.

I'll look at it later.

-- Juliusz

_______________________________________________
Babel-users mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/babel-users

Reply via email to