From 41c9275ce788f5d8683006f9ddf6bcc25962440d Mon Sep 17 00:00:00 2001 From: Frederic Marchal Date: Sun, 26 Apr 2015 14:00:36 +0200 Subject: [PATCH] Merge messages about IP addresses. --- ip2name.c | 2 +- ip2name_exec.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ip2name.c b/ip2name.c index f201f5f..48bf806 100644 --- a/ip2name.c +++ b/ip2name.c @@ -320,7 +320,7 @@ void name2ip(char *name,int name_size) getword_start(&gwarea,inet_ntoa(ia)); if (getword(n4,sizeof(n4),&gwarea,'.')<0 || getword(n3,sizeof(n3),&gwarea,'.')<0 || getword(n2,sizeof(n2),&gwarea,'.')<0 || getword(n1,sizeof(n1),&gwarea,0)<0) { - printf("SARG: Maybe you have a broken record or garbage in your %s ip address.\n",gwarea.beginning); + debuga(_("Invalid IPv4 address \"%s\"\n"),gwarea.beginning); exit(EXIT_FAILURE); } snprintf(name,name_size,"%s.%s.%s.%s",n1,n2,n3,n4); diff --git a/ip2name_exec.c b/ip2name_exec.c index 71bbd61..d68bbae 100644 --- a/ip2name_exec.c +++ b/ip2name_exec.c @@ -100,7 +100,7 @@ static enum ip2name_retcode ip2name_exec(char *ip,int ip_len) 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); return(INRC_Error); } cmd[j++]=ExecCmd[i]; -- 2.39.2