Format string paranoia

This commit is contained in:
kris 2000-11-19 12:46:16 +00:00
parent 0766263be1
commit e2929373f2

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) {