X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gtk%2Fxboard.c;h=485e94259b51ba0f13002f9cf287309ec8070830;hb=674a21be8b9a930d910d4345db5b999e76c58b70;hp=423f3046aac83bd7b051b17e8054af58497f42e6;hpb=3ecea4bd20be3d7d77cd6fd97936f04395080156;p=xboard.git diff --git a/gtk/xboard.c b/gtk/xboard.c index 423f304..485e942 100644 --- a/gtk/xboard.c +++ b/gtk/xboard.c @@ -256,7 +256,6 @@ GtkAccelGroup *GtkAccelerators; typedef unsigned int BoardSize; BoardSize boardSize; Boolean chessProgram; -int initialSquareSize; int minX, minY; // [HGM] placement: volatile limits on upper-left corner int smallLayout = 0, tinyLayout = 0, @@ -984,7 +983,9 @@ main (int argc, char **argv) } if ((chessDir = (char *) getenv("CHESSDIR")) == NULL) { - chessDir = "."; + static char dirName[MSG_SIZ]; + getcwd(dirName, MSG_SIZ); + chessDir = dirName; } else { if (chdir(chessDir) != 0) { fprintf(stderr, _("%s: can't cd to CHESSDIR: "), programName);