Date: Thu, 15 Aug 2002 14:19:31 -0700 (PDT) From: Robert Drehmel <robert@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/net inet_ntop.c Message-ID: <200208152119.g7FLJVJc017800@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
robert 2002/08/15 14:19:31 PDT Modified files: lib/libc/net inet_ntop.c Log: - Fix a bug that wrote one char behind the end of the supplied buffer in case the size of it was equal to the number of characters the converted address consumed. The bug occurred when converting an AF_INET address. - Remove the SPRINTF macro and use sprintf instead. - Do not do string formatting using sprintf(3) and a temporary buffer which is copied when the supplied buffer provides enough space. Instead, use snprintf(3) and the real destination buffer, thus avoid the copy. Reported by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at> (1) PR: misc/41289 Revision Changes Path 1.11 +3 -6 src/lib/libc/net/inet_ntop.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208152119.g7FLJVJc017800>