* support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
* debian/changelog: Version 1.0.3-2.
+2003-06-10 Chip Salzenberg <chip@pobox.com>
+
+ * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
+ * debian/changelog: Version 1.0.3-2.
+
2003-05-30 Michael Griffith <grif@michaelgriffith.com>
NeilBrown <neilb@cse.unsw.edu.au>
+nfs-utils (1:1.0.3-2) unstable; urgency=high
+
+ * Upstream CVS sync:
+ > Fix one-byte buffer overflow in logging code.
+
+ -- Chip Salzenberg <chip@debian.org> Tue, 10 Jun 2003 11:11:56 -0400
+
nfs-utils (1:1.0.3-1) unstable; urgency=low
* New upstream version:
return;
va_start(args, fmt);
- vsnprintf(buff, sizeof (buff), fmt, args);
+ vsnprintf(buff, sizeof (buff) - 2, fmt, args);
va_end(args);
- buff[sizeof (buff) - 1] = 0;
+ buff[sizeof (buff) - 2] = 0;
if ((n = strlen(buff)) > 0 && buff[n-1] != '\n') {
buff[n++] = '\n'; buff[n++] = '\0';