summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2014-04-19 14:37:46 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2014-04-19 14:37:46 +0000
commita7fcf5f2114f292c81759cc7dde145cf92d671a8 (patch)
tree6caa0a16929753c6f8f67128e817aa6a807ee88d /usr.sbin
parente1e4c727e1f67568d9dc74e95fc2f6997e630cd0 (diff)
(void) cast strlcpy() call that uses truncation as part of its parsing
logic to extract at most sizeof buf - 1 bytes from source
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/smtpd/aldap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/aldap.c b/usr.sbin/smtpd/aldap.c
index 04fe7e56a48..3162e55c080 100644
--- a/usr.sbin/smtpd/aldap.c
+++ b/usr.sbin/smtpd/aldap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aldap.c,v 1.6 2013/06/03 15:53:48 eric Exp $ */
+/* $OpenBSD: aldap.c,v 1.7 2014/04/19 14:37:45 gilles Exp $ */
/*
* Copyright (c) 2008 Alexander Schrijver <aschrijver@openbsd.org>
@@ -1240,7 +1240,7 @@ parseval(char *p, size_t len)
}
if (cp[j] == '\\') {
- strlcpy(hex, cp + j + 1, sizeof(hex));
+ (void)strlcpy(hex, cp + j + 1, sizeof(hex));
buffer[i] = (char)strtoumax(hex, NULL, 16);
j += 3;
} else {