diff options
Diffstat (limited to 'scpmisc.c')
-rw-r--r-- | scpmisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -102,7 +102,7 @@ xstrdup(const char *str) len = strlen(str) + 1; cp = xmalloc(len); - strncpy(cp, str, len); + strlcpy(cp, str, len); return cp; } |