{ "syncAfterCycle", ArgBoolean, (void *) &appData.cycleSync, FALSE, (ArgIniType) TRUE },
{ "seedBase", ArgInt, (void *) &appData.seedBase, FALSE, (ArgIniType) 1 },
{ "afterGame", ArgString, (void *) &appData.afterGame, FALSE, INVALID },
+ { "afterTourney", ArgString, (void *) &appData.afterTourney, FALSE, INVALID },
/* [HGM] board-size, adjudication and misc. options */
{ "oneClickMove", ArgBoolean, (void *) &appData.oneClick, TRUE, (ArgIniType) FALSE },
int len;
len = snprintf(buf,MSG_SIZ, "%s %s", msg, badArg);
- if( (len > MSG_SIZ) && appData.debugMode )
+ if( (len >= MSG_SIZ) && appData.debugMode )
fprintf(debugFP, "ExitArgError: buffer truncated. Input: msg=%s badArg=%s\n", msg, badArg);
if(!quit) { printf(_("%s in settings file\n"), buf); return; } // DisplayError does not work yet at this stage...
if(!ok && strchr(name, '.') == NULL)
{ // append default file-name extension '.ini' when needed
len = snprintf(buf,MSG_SIZ, "%s.ini", name);
- if( (len > MSG_SIZ) && appData.debugMode )
+ if( (len >= MSG_SIZ) && appData.debugMode )
fprintf(debugFP, "ParseSettingsFile: buffer truncated. Input: name=%s \n",name);
ok = MySearchPath(installDir, buf, fullname);
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"), argName, TRUE);
}
q = argValue;
if (ch == '{') {
if(p != NULL)
{ // engine command line contains WinBoard options
len = snprintf(buf, MSG_SIZ, p+6, f, f, f, f, f, f, f, f, f, f); // replace %s in them by "first"
- if( (len > MSG_SIZ) && appData.debugMode )
+ if( (len >= MSG_SIZ) && appData.debugMode )
fprintf(debugFP, "InitAppData: buffer truncated.\n");
ParseArgs(StringGet, &q);
if(p != NULL)
{ // engine command line contains WinBoard options
len = snprintf(buf,MSG_SIZ, p+6, s, s, s, s, s, s, s, s, s, s); // replace %s in them by "first"
- if( (len > MSG_SIZ) && appData.debugMode )
+ if( (len >= MSG_SIZ) && appData.debugMode )
fprintf(debugFP, "InitAppData: buffer truncated.\n");
ParseArgs(StringGet, &q);
return TRUE;
case ArgInt:
len = snprintf(name, MSG_SIZ, "%d", *(int*) ad->argLoc);
- if( (len > MSG_SIZ) && appData.debugMode )
+ if( (len >= MSG_SIZ) && appData.debugMode )
fprintf(debugFP, "GetArgValue: buffer truncated.\n");
return TRUE;
case ArgBoolean:
len = snprintf(name, MSG_SIZ, "%s", *(Boolean*) ad->argLoc ? "true" : "false");
- if( (len > MSG_SIZ) && appData.debugMode )
+ if( (len >= MSG_SIZ) && appData.debugMode )
fprintf(debugFP, "GetArgValue: buffer truncated.\n");
return TRUE;