Format string paranoia

This commit is contained in:
Kris Kennaway 2000-11-19 12:46:16 +00:00
parent 35cd89e7e5
commit 3fb3b78f0f

View File

@ -410,9 +410,9 @@ main(argc, argv, envp)
}
}
if (error) {
syslog(LOG_ERR, gai_strerror(error));
syslog(LOG_ERR, "%s", gai_strerror(error));
if (error == EAI_SYSTEM)
syslog(LOG_ERR, strerror(errno));
syslog(LOG_ERR, "%s", strerror(errno));
exit(1);
}
if (res->ai_addr == NULL) {