svn commit: r272971 - head/usr.sbin/rtadvd
Hiroki Sato
hrs at FreeBSD.org
Sat Oct 11 23:08:01 UTC 2014
Author: hrs
Date: Sat Oct 11 23:08:00 2014
New Revision: 272971
URL: https://svnweb.freebsd.org/changeset/base/272971
Log:
Fix off-by-one.
MFC after: 1 day
Modified:
head/usr.sbin/rtadvd/advcap.c
Modified: head/usr.sbin/rtadvd/advcap.c
==============================================================================
--- head/usr.sbin/rtadvd/advcap.c Sat Oct 11 23:02:03 2014 (r272970)
+++ head/usr.sbin/rtadvd/advcap.c Sat Oct 11 23:08:00 2014 (r272971)
@@ -149,9 +149,9 @@ getent(char *bp, char *name, const char
}
break;
}
- if (cp >= bp + BUFSIZ) {
+ if (cp >= bp + BUFSIZ - 1) {
write(STDERR_FILENO, "Remcap entry too long\n",
- 23);
+ 22);
break;
} else
*cp++ = c;
More information about the svn-src-head
mailing list