aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/xfuncs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index e6f4e3a48..1dbd7521b 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -74,6 +74,7 @@ char * xstrndup(const char *s, int n)
74 if (ENABLE_DEBUG && s == NULL) 74 if (ENABLE_DEBUG && s == NULL)
75 bb_error_msg_and_die("xstrndup bug"); 75 bb_error_msg_and_die("xstrndup bug");
76 76
77 /* TODO: think about xstrndup("abc", 10000)!!! */
77 t = xmalloc(++n); 78 t = xmalloc(++n);
78 79
79 return safe_strncpy(t,s,n); 80 return safe_strncpy(t,s,n);