aboutsummaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-14 08:11:27 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-14 08:11:27 +0000
commit2c3e72e1d6e553a10e0a5611e37bff9e07cca9f4 (patch)
treeece4d8fefb69365210a9e623df07b41086cd5613 /utility.c
parent422f7238cf5ed1cce788f703d659e8c766bb6754 (diff)
downloadbusybox-w32-2c3e72e1d6e553a10e0a5611e37bff9e07cca9f4.tar.gz
busybox-w32-2c3e72e1d6e553a10e0a5611e37bff9e07cca9f4.tar.bz2
busybox-w32-2c3e72e1d6e553a10e0a5611e37bff9e07cca9f4.zip
Add in ifconfig and route
git-svn-id: svn://busybox.net/trunk/busybox@1802 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-rw-r--r--utility.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/utility.c b/utility.c
index f3c184e73..368dfc5fe 100644
--- a/utility.c
+++ b/utility.c
@@ -1377,6 +1377,14 @@ extern char * xstrndup (const char *s, int n) {
1377} 1377}
1378#endif 1378#endif
1379 1379
1380#if defined BB_IFCONFIG || defined BB_ROUTE
1381/* Like strncpy but make sure the resulting string is always 0 terminated. */
1382extern char * safe_strncpy(char *dst, const char *src, size_t size)
1383{
1384 dst[size-1] = '\0';
1385 return strncpy(dst, src, size-1);
1386}
1387#endif
1380 1388
1381#if (__GLIBC__ < 2) && (defined BB_SYSLOGD || defined BB_INIT) 1389#if (__GLIBC__ < 2) && (defined BB_SYSLOGD || defined BB_INIT)
1382extern int vdprintf(int d, const char *format, va_list ap) 1390extern int vdprintf(int d, const char *format, va_list ap)