projects
/
xboard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix Chu-Shogi Lance deferral
[xboard.git]
/
usystem.c
diff --git
a/usystem.c
b/usystem.c
index
275d739
..
a051523
100644
(file)
--- a/
usystem.c
+++ b/
usystem.c
@@
-358,6
+358,9
@@
ExpandPathName (char *path)
}
if (*s == '~') {
+ if(s[1] == '~') { // use ~~ for XBoard's private data directory
+ snprintf(d, 4*MSG_SIZ, DATADIR "%s", s+2);
+ } else
if (*(s+1) == '/') {
safeStrCpy(d, getpwuid(getuid())->pw_dir, 4*MSG_SIZ );
strcat(d, s+1);