aboutsummaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-11-12 16:57:27 +0000
committerMatt Kraai <kraai@debian.org>2001-11-12 16:57:27 +0000
commitc8227639db90c3147ef68f33c98e96b0ab6b01d6 (patch)
treeb704ef3f684a41c7705b5e36dac2127d23d129c4 /sysklogd
parent357cfc739ed5f5c00ee46a43820a1d02367e3b38 (diff)
downloadbusybox-w32-c8227639db90c3147ef68f33c98e96b0ab6b01d6.tar.gz
busybox-w32-c8227639db90c3147ef68f33c98e96b0ab6b01d6.tar.bz2
busybox-w32-c8227639db90c3147ef68f33c98e96b0ab6b01d6.zip
Change strdup calls to xstrdup (patch from Steve Merrifield).
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/syslogd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index 84414439e..625f99715 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -589,11 +589,11 @@ extern int syslogd_main(int argc, char **argv)
589 doFork = FALSE; 589 doFork = FALSE;
590 break; 590 break;
591 case 'O': 591 case 'O':
592 logFilePath = strdup(optarg); 592 logFilePath = xstrdup(optarg);
593 break; 593 break;
594#ifdef CONFIG_FEATURE_REMOTE_LOG 594#ifdef CONFIG_FEATURE_REMOTE_LOG
595 case 'R': 595 case 'R':
596 RemoteHost = strdup(optarg); 596 RemoteHost = xstrdup(optarg);
597 if ( (p = strchr(RemoteHost, ':'))){ 597 if ( (p = strchr(RemoteHost, ':'))){
598 RemotePort = atoi(p+1); 598 RemotePort = atoi(p+1);
599 *p = '\0'; 599 *p = '\0';