if (error==EAI_NONAME)
return(INRC_NotFound);
if (error!=0) {
- debuga(_("IP to name resolution (getnameinfo) on IP address %s failed with error %d - %s\n"),ip,error,gai_strerror(error));
+ debuga(_("IP to name resolution (getnameinfo) on IP address \"%s\" failed with error %d - %s\n"),ip,error,gai_strerror(error));
return(INRC_Error);
}
safe_strcpy(ip,host,ip_len);
for (i=0 ; i<sizeof(ExecCmd) && ExecCmd[i] ; i++) {
if (ExecCmd[i]=='%' && strncmp(ExecCmd+i+1,"IP",2)==0) {
if (j+len>=sizeof(cmd)) {
- debuga(_("IP address %s too long for the command to run\n"),ip);
+ debuga(_("IP address \"%s\" too long for the command to run\n"),ip);
return(INRC_Error);
}
strcpy(cmd+j,ip);
i+=2;
} else {
if (j>=sizeof(cmd)) {
- debuga(_("IP address %.*s too long for the command to run\n"),ip_len,ip);
+ debuga(_("IP address \"%.*s\" too long for the command to run\n"),ip_len,ip);
return(INRC_Error);
}
cmd[j++]=ExecCmd[i];