Change strdup calls to xstrdup (patch from Steve Merrifield).

This commit is contained in:
Matt Kraai
2001-11-12 16:57:27 +00:00
parent 357cfc739e
commit c8227639db
9 changed files with 22 additions and 22 deletions

View File

@@ -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';