From c8227639db90c3147ef68f33c98e96b0ab6b01d6 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Mon, 12 Nov 2001 16:57:27 +0000 Subject: Change strdup calls to xstrdup (patch from Steve Merrifield). --- sysklogd/syslogd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysklogd') diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 8441443..625f997 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c @@ -589,11 +589,11 @@ extern int syslogd_main(int argc, char **argv) doFork = FALSE; break; case 'O': - logFilePath = strdup(optarg); + logFilePath = xstrdup(optarg); break; #ifdef CONFIG_FEATURE_REMOTE_LOG case 'R': - RemoteHost = strdup(optarg); + RemoteHost = xstrdup(optarg); if ( (p = strchr(RemoteHost, ':'))){ RemotePort = atoi(p+1); *p = '\0'; -- cgit v1.1