aboutsummaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
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';