]>
Commit | Line | Data |
---|---|---|
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 |