diff options
author | Rob Landley <rob@landley.net> | 2013-04-20 23:33:48 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2013-04-20 23:33:48 -0500 |
commit | be93c91c8cbaaa8e2fa2980a48d0c56a605b1aa9 (patch) | |
tree | 2e1457bf8d7c763d9020f3f82ca6252d03ac0877 /lib | |
parent | 1fb482339645d2d9b496f3113391c518211eb4d9 (diff) | |
download | toybox-be93c91c8cbaaa8e2fa2980a48d0c56a605b1aa9.tar.gz |
More ifconfig cleanup.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lib.c | 2 | ||||
-rw-r--r-- | lib/lib.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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); @@ -86,7 +86,7 @@ struct dirtree *dirtree_read(char *path, int (*callback)(struct dirtree *node)); void show_help(void); // lib.c -void xstrcpy(char *dest, char *src, size_t size); +void xstrncpy(char *dest, char *src, size_t size); void verror_msg(char *msg, int err, va_list va); void error_msg(char *msg, ...); void perror_msg(char *msg, ...); |