From be93c91c8cbaaa8e2fa2980a48d0c56a605b1aa9 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 20 Apr 2013 23:33:48 -0500 Subject: More ifconfig cleanup. --- lib/lib.c | 2 +- lib/lib.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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); diff --git a/lib/lib.h b/lib/lib.h index 8b28bd32..18c0155f 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -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, ...); -- cgit v1.2.3