diff options
Diffstat (limited to 'src/portab/strndup.c')
| -rw-r--r-- | src/portab/strndup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portab/strndup.c b/src/portab/strndup.c index d6e01c94..578f324c 100644 --- a/src/portab/strndup.c +++ b/src/portab/strndup.c @@ -30,8 +30,8 @@ strndup(const char *s, size_t maxlen) dup = malloc(len); if (dup) strlcpy(dup, s, len); + return dup; } #endif - |