aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-04-20 23:33:48 -0500
committerRob Landley <rob@landley.net>2013-04-20 23:33:48 -0500
commitbe93c91c8cbaaa8e2fa2980a48d0c56a605b1aa9 (patch)
tree2e1457bf8d7c763d9020f3f82ca6252d03ac0877 /lib/lib.c
parent1fb482339645d2d9b496f3113391c518211eb4d9 (diff)
downloadtoybox-be93c91c8cbaaa8e2fa2980a48d0c56a605b1aa9.tar.gz
More ifconfig cleanup.
Diffstat (limited to 'lib/lib.c')
-rw-r--r--lib/lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib.c b/lib/lib.c
index 66cecbc2..87ff12cb 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -11,7 +11,7 @@
#include "toys.h"
// Strcpy with size checking: exit if there's not enough space for the string.
-void xstrcpy(char *dest, char *src, size_t size)
+void xstrncpy(char *dest, char *src, size_t size)
{
if (strlen(src)+1 > size) error_exit("xstrcpy");
strcpy(dest, src);