diff options
Diffstat (limited to 'src/string/strlcpy.c')
-rw-r--r-- | src/string/strlcpy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string/strlcpy.c b/src/string/strlcpy.c index bbebf1db..6aeb106a 100644 --- a/src/string/strlcpy.c +++ b/src/string/strlcpy.c @@ -21,7 +21,7 @@ size_t strlcpy(char *d, const char *s, size_t n) if (n && *s) { wd=(void *)d; ws=(const void *)s; for (; n>=sizeof(size_t) && !HASZERO(*ws); - n-=sizeof(size_t), ws++, *wd++) *wd = *ws; + n-=sizeof(size_t), ws++, wd++) *wd = *ws; d=(void *)wd; s=(const void *)ws; } } |