diff options
Diffstat (limited to 'libgcompat/string.c')
-rw-r--r-- | libgcompat/string.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libgcompat/string.c b/libgcompat/string.c index acc0566..f96e8d6 100644 --- a/libgcompat/string.c +++ b/libgcompat/string.c @@ -103,10 +103,11 @@ weak_alias(__rawmemchr, rawmemchr); */ char *__stpcpy_chk(char *dest, const char *src, size_t destlen) { - size_t n = strlen(src) + 1; + size_t n; assert(dest != NULL); assert(src != NULL); + n = strlen(src) + 1; assert(destlen >= n); if (dest < src) { assert(dest + n <= src); |