Mercurial > hg > toybox
diff lib/lib.h @ 167:f16c8e5e9435
Replace strlcpy() with xstrcpy(), which exits if the string won't fit.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 19 Nov 2007 01:51:00 -0600 |
parents | 5f1d3ad8a888 |
children | 29e2051296fd |
line wrap: on
line diff
--- a/lib/lib.h Thu Nov 15 21:12:24 2007 -0600 +++ b/lib/lib.h Mon Nov 19 01:51:00 2007 -0600 @@ -36,10 +36,7 @@ int (*callback)(struct dirtree *node)); // lib.c -#if !defined(__UCLIBC__) && !defined(__KLIBC__) -void strlcpy(char *dest, char *src, size_t size); -#endif - +void xstrcpy(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, ...);