From 972810f6cfd9715de1b182978c4d26e67dcf72cf Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Tue, 15 Nov 2022 11:24:34 -0500 Subject: strlcpy finish cleanup remove strlcpy & strlcat from string.h document suspicious strlcpy call convert strlcat.h users to string-extra Change-Id: I313e75db86385c0e6d1aee75d252093be4935f60 --- firmware/common/strlcpy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/common/strlcpy.c') diff --git a/firmware/common/strlcpy.c b/firmware/common/strlcpy.c index bfdb6482a4..5107ea1207 100644 --- a/firmware/common/strlcpy.c +++ b/firmware/common/strlcpy.c @@ -34,6 +34,6 @@ size_t strlcpy(char *dst, const char *src, size_t siz) if (d) return (d - dst - 1); /* count does not include NUL */ - /* Not enough room in dst, add NUL and traverse rest of src */ + /* Not enough room in dst, traverse rest of src */ return(siz + strlen(src+siz)); /* count does not include NUL */ } -- cgit v1.2.3