char buf[MSG_SIZ];
int len;
- len = snprintf(buf,MSG_SIZ, "%s %s", msg, badArg);
+ len = snprintf(buf, MSG_SIZ, msg, badArg);
if( (len >= MSG_SIZ) && appData.debugMode )
fprintf(debugFP, "ExitArgError: buffer truncated. Input: msg=%s badArg=%s\n", msg, badArg);
{
char *p = s;
if(*p == '-' || *p == '+') p++;
- while(*p) if(!isdigit(*p++)) ExitArgError(_("Bad integer value"), s, TRUE);
+ while(*p) if(!isdigit(*p++)) ExitArgError(_("Bad integer value %s"), s, TRUE);
return atoi(s);
}
for (ad = argDescriptors; ad->argName != NULL; ad++)
if (strcmp(ad->argName, argName + 1) == 0) break;
if (ad->argName == NULL) {
- ExitArgError(_("Unrecognized argument"), argName, get != &FileGet); // [HGM] make unknown argument non-fatal
+ ExitArgError(_("Unrecognized argument %s"), argName, get != &FileGet); // [HGM] make unknown argument non-fatal
while (ch != '\n' && ch != NULLCHAR) ch = get(cl); // but skip rest of line it is on
continue; // so that when it is in a settings file, it is the only setting that will be purged from it
}
while (ch == ' ' || ch == '=' || ch == ':' || ch == '\t') ch = get(cl);
if (ch == NULLCHAR || ch == '\n') {
- ExitArgError(_("No value provided for argument"), argName, TRUE);
+ ExitArgError(_("No value provided for argument %s"), argName, TRUE);
}
q = argValue;
if (ch == '{') {
ch = get(cl);
switch (ch) {
case NULLCHAR:
- ExitArgError(_("Incomplete \\ escape in value for"), argName, TRUE);
+ ExitArgError(_("Incomplete \\ escape in value for %s"), argName, TRUE);
break;
case 'n':
*q++ = '\n';
} else {
if (ad->argLoc != NULL) {
} else {
- ExitArgError(_("Failed to open indirection file"), argValue, TRUE);
+ ExitArgError(_("Failed to open indirection file %s"), argValue, TRUE);
}
}
}
*(Boolean *) ad->argLoc = FALSE;
break;
default:
- ExitArgError(_("Unrecognized boolean argument value"), argValue, TRUE);
+ ExitArgError(_("Unrecognized boolean argument value %s"), argValue, TRUE);
break;
}
break;
break;
case ArgNone:
- ExitArgError(_("Unrecognized argument"), argValue, TRUE);
+ ExitArgError(_("Unrecognized argument %s"), argValue, TRUE);
break;
case ArgTwo:
case ArgTrue: