summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/logmsg.c
diff options
context:
space:
mode:
authortobias <tobias@openbsd.org>2007-09-04 17:57:41 +0000
committertobias <tobias@openbsd.org>2007-09-04 17:57:41 +0000
commit870158f92b8931e8f64a5f16e6cfd980b41b6d33 (patch)
tree2dedfd5ad62fc5c6889b649254a3f6abcefeda43 /usr.bin/cvs/logmsg.c
parentReset the chip after internal memory exhaustion, makes the driver more solid (diff)
downloadwireguard-openbsd-870158f92b8931e8f64a5f16e6cfd980b41b6d33.tar.xz
wireguard-openbsd-870158f92b8931e8f64a5f16e6cfd980b41b6d33.zip
Replaced strlen() with sizeof() - 1 when #define'd strings are used.
OK ray@
Diffstat (limited to 'usr.bin/cvs/logmsg.c')
-rw-r--r--usr.bin/cvs/logmsg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/logmsg.c b/usr.bin/cvs/logmsg.c
index 8570bbe4953..c630608cba4 100644
--- a/usr.bin/cvs/logmsg.c
+++ b/usr.bin/cvs/logmsg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: logmsg.c,v 1.43 2007/09/04 11:47:14 tobias Exp $ */
+/* $OpenBSD: logmsg.c,v 1.44 2007/09/04 17:57:41 tobias Exp $ */
/*
* Copyright (c) 2007 Joris Vink <joris@openbsd.org>
*
@@ -71,7 +71,7 @@ cvs_logmsg_read(const char *path)
len = strlen(buf);
if (!strncmp(buf, CVS_LOGMSG_PREFIX,
- strlen(CVS_LOGMSG_PREFIX)))
+ sizeof(CVS_LOGMSG_PREFIX) - 1))
continue;
cvs_buf_append(bp, buf, len);