aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-11-19 01:51:00 -0600
committerRob Landley <rob@landley.net>2007-11-19 01:51:00 -0600
commite15850ae972957d097eeadfd5721e3ac8f10fd4e (patch)
treefa0a4d4f4404a3476d684a3a50d3ccb9e89548db /lib/lib.h
parentefa93b987a355385d0b1a1ac4e3a0e25db63b494 (diff)
downloadtoybox-e15850ae972957d097eeadfd5721e3ac8f10fd4e.tar.gz
Replace strlcpy() with xstrcpy(), which exits if the string won't fit.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/lib.h b/lib/lib.h
index 07f4a6d8..67c6dac9 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -36,10 +36,7 @@ struct dirtree *dirtree_read(char *path, struct dirtree *parent,
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, ...);