X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=args.h;h=2bc0211236218c84e057345910aacc90c9eecb94;hb=ce2d2972671ea7eff9dbbe7028718bef4d837dfb;hp=d1463ec2ffa3fc88b409141fe1087c798aadfbd4;hpb=e6e38912837a4fe2464356408d10dee950b3121c;p=xboard.git diff --git a/args.h b/args.h index d1463ec..2bc0211 100644 --- a/args.h +++ b/args.h @@ -699,6 +699,7 @@ ArgDescriptor argDescriptors[] = { { "buttonColor", ArgString, (void *) &appData.buttonColor, XBOARD, (ArgIniType) "" }, { "firstDrawDepth", ArgInt, (void *) &appData.drawDepth[0], FALSE, (ArgIniType) 0 }, { "secondDrawDepth", ArgInt, (void *) &appData.drawDepth[1], FALSE, (ArgIniType) 0 }, + { "memoHeaders", ArgBoolean, (void *) &appData.headers, TRUE, (ArgIniType) FALSE }, #if ZIPPY { "zippyTalk", ArgBoolean, (void *) &appData.zippyTalk, FALSE, (ArgIniType) ZIPPY_TALK }, @@ -911,7 +912,9 @@ ParseSettingsFile(char *name, char **addr) f = fopen(fullname, "r"); #ifdef DATADIR if(f == NULL && *fullname != '/') { // when a relative name did not work - MySearchPath(DATADIR "/themes/conf", name, fullname); // also look in standard place + char buf[MSG_SIZ]; + snprintf(buf, MSG_SIZ, "%s/themes/conf", DATADIR); + MySearchPath(buf, name, fullname); // also look in standard place f = fopen(fullname, "r"); } #endif