I got this suggestion from upstream.  Can you test and see if it help
to get rid of the valgrind errors?

[Martijn van Oosterhout]
> Ok, got something: valgrind points at sprintf and gosmore only uses
> that in one place. And that function is indeed slightly dodgy. Some
> suggestions:
> 
>           if (!i) len += strlen (last);
>           else len += sprintf (msg + len, "%s\n", last);
> 
> That should probably be strlen(last)+1. Earlier it does a len+=11, I'd
> make that 12 to be on the safe side.
> 
> See if that helps,

As I said earlier, I am unable to reproduce the problem.

Happy hacking,
-- 
Petter Reinholdtsen


_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel

Reply via email to