summaryrefslogtreecommitdiff
path: root/firmware/common/strlcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/strlcpy.c')
-rw-r--r--firmware/common/strlcpy.c2
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}