On Sat, Aug 10, 2002 at 05:56:26PM -0300, "Juan F. Codagnone" <[EMAIL PROTECTED]> wrote: > i was going to reinvent char szUin[13]; snprintf yet another time... but i > said to my self: `What the hell', so here is a clean up of the code > instead of reinventing uin2ascii in different ways each times. > > some of the call were potentially wrong as: > - - len[0] = snprintf(uin, 12, "%lu", *iter); > because snprintf can return -1 if the uin is larger than 12 digits. i know > that this can't happen in an ideal licq, but just in case :)
snprintf return semantics are unreliable across multiple platforms anyway. See [1] for details. Tim 1. http://www.linuxvoodoo.com/howto/HOWTO/Secure-Programs-HOWTO/dangers-c.html -- Tim van Erven <[EMAIL PROTECTED]> OpenPGP Key ID: 712CB811 Fingerprint: F6C9 61EE 242C C012 36D5 BBF8 6310 D557 712C B811 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Licq-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/licq-devel
