Mail Archives: djgpp-workers/2002/05/25/10:05:01
Richard said:
> Andrew Cottrell wrote:
> [snip]
> > Please note that confstr.c as simple as I thought and I am wtill working on
> > it as the compiler does not like the following line in the file:-
> > out_len = snprintf(buf, len, "");
> > GCC 3.1 complains about the third parameter.
> [snip]
>
> What complaint does it have? I suspect it's complaining that there's no format
> string. Does it complain about this?
>
> out_len = snprintf(buf, len, "%s", "");
>
> It looks like this call is intended to truncate the buffer, to return to an
> empty string.
What is this crap? Surely an empty format string is allowed and ok. I
suggest you find if there's a specific warning that can be switched
off and do that.
Right,
MartinS
- Raw text -