summaryrefslogtreecommitdiffhomepage
path: root/scpmisc.c
diff options
context:
space:
mode:
Diffstat (limited to 'scpmisc.c')
-rw-r--r--scpmisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scpmisc.c b/scpmisc.c
index 33e1891..c2f053e 100644
--- a/scpmisc.c
+++ b/scpmisc.c
@@ -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;
}