On Wed, 20.08.08 15:35, Lennart Poettering ([EMAIL PROTECTED]) wrote: > > + if (strlen(s)+1 < n+1) > > + length = strlen(s)+1; > > + else > > + length = n+1;
One more thing: this will crash if s is not really terminated by a 0 byte. Lennart -- Lennart Poettering Red Hat, Inc. lennart [at] poettering [dot] net ICQ# 11060553 http://0pointer.net/lennart/ GnuPG 0x1A015CC4 _______________________________________________ libcanberra-discuss mailing list [email protected] https://tango.0pointer.de/mailman/listinfo/libcanberra-discuss
