diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-11-15 11:24:34 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-11-17 01:54:46 -0500 |
commit | 972810f6cfd9715de1b182978c4d26e67dcf72cf (patch) | |
tree | 71b62ce1bb22cfb5ea8974667b0b74bb1697fe9e /firmware/common/strlcpy.c | |
parent | 0b7a387671a56a1b526b3672cd695b5764597f3e (diff) | |
download | rockbox-972810f6cfd9715de1b182978c4d26e67dcf72cf.tar.gz rockbox-972810f6cfd9715de1b182978c4d26e67dcf72cf.zip |
strlcpy finish cleanup
remove strlcpy & strlcat from string.h
document suspicious strlcpy call
convert strlcat.h users to string-extra
Change-Id: I313e75db86385c0e6d1aee75d252093be4935f60
Diffstat (limited to 'firmware/common/strlcpy.c')
-rw-r--r-- | firmware/common/strlcpy.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
34 | if (d) | 34 | if (d) |
35 | return (d - dst - 1); /* count does not include NUL */ | 35 | return (d - dst - 1); /* count does not include NUL */ |
36 | 36 | ||
37 | /* Not enough room in dst, add NUL and traverse rest of src */ | 37 | /* Not enough room in dst, traverse rest of src */ |
38 | return(siz + strlen(src+siz)); /* count does not include NUL */ | 38 | return(siz + strlen(src+siz)); /* count does not include NUL */ |
39 | } | 39 | } |