]> git.pld-linux.org Git - packages/ntp.git/blame - ntp-vsnprintf.patch
- release 2: added ntpdate(8) and ntpd(8) man pages from Debian.
[packages/ntp.git] / ntp-vsnprintf.patch
CommitLineData
ce2f2f2f 1--- ntp-4.0.99j/libntp/msyslog.c.vsnprintf Wed Aug 23 13:04:18 2000
2+++ ntp-4.0.99j/libntp/msyslog.c Wed Aug 23 13:06:05 2000
3@@ -126,7 +126,8 @@
4 *n++ = '\n';
5 *n = '\0';
6
7- vsprintf(buf, nfmt, ap);
8+ vsnprintf(buf, sizeof(buf), nfmt, ap);
9+ buf[sizeof(buf)-1] = '\0';
10 #if !defined(VMS) && !defined (SYS_VXWORKS)
11 if (syslogit)
12 #ifndef SYS_WINNT
This page took 0.023589 seconds and 4 git commands to generate.