From 9b892c77ed3264649a08ea471f984b3415830ca6 Mon Sep 17 00:00:00 2001 From: gilles Date: Sat, 19 Apr 2014 14:37:45 +0000 Subject: [PATCH] (void) cast strlcpy() call that uses truncation as part of its parsing logic to extract at most sizeof buf - 1 bytes from source --- usr.sbin/smtpd/aldap.c | 4 ++-- 1 file 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 @@ -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 { -- 2.20.1