X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=usystem.c;h=23ba305799bc93e6851b794c8a00fabdb87a054a;hb=2655364624f87e757fa8719d3510bdf02ccf850c;hp=77efb609d54ac6756e081abe3383803662e5b77e;hpb=3e1799f3237898a1ccae6254bee35187b91a7506;p=xboard.git diff --git a/usystem.c b/usystem.c index 77efb60..23ba305 100644 --- a/usystem.c +++ b/usystem.c @@ -347,7 +347,7 @@ ExpandPathName (char *path) if (*s == '~') { if(s[1] == '~') { // use ~~ for XBoard's private data directory - snprintf(d, 4*MSG_SIZ, DATADIR "%s", s+2); + snprintf(d, 4*MSG_SIZ, "%s%s", dataDir, s+2); } else if (*(s+1) == '/') { safeStrCpy(d, getpwuid(getuid())->pw_dir, 4*MSG_SIZ );