Christian Biere <[EMAIL PROTECTED]> wrote:

> Tommi Vainikainen <[EMAIL PROTECTED]> wrote:
> > rw = g_snprintf(gnet_response, sizeof(gnet_response), ...);
> > Return value of g_snprintf is number of characters (excluding the
> > trailing '\0') which would have been written to the final string if
> > enough space had been available.

dammit, this is only true since glib-2.0. glib-1.2.10 will always return
strlen(str) which makes truncation detection a PITA.

Christian

Attachment: msg00033/pgp00000.pgp
Description: PGP signature

Reply via email to