X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=dialogs.c;h=2be171f24753ff0ad1acb45e38b6d4a7d156e1a2;hb=677d32ecebe49075a6889451de4e24c4c5947e44;hp=084d9f46d11ecdb499e47d3d28964a7e183f3bf6;hpb=476926444bc43c8de2ec2fcf9da505050daf70cc;p=xboard.git diff --git a/dialogs.c b/dialogs.c index 084d9f4..2be171f 100644 --- a/dialogs.c +++ b/dialogs.c @@ -2491,12 +2491,13 @@ GetHelpText (FILE *f, char *name) void DisplayHelp (char *name) { - char buf[MSG_SIZ], *manFile = MANDIR "/man6/xboard.6"; + char buf[MSG_SIZ]; FILE *f; - if(currentCps) snprintf(manFile = buf, MSG_SIZ, "/usr/share/man/man6/%s.6", currentCps->program); - f = fopen(manFile, "r"); + if(currentCps) snprintf(buf, MSG_SIZ, "/usr/local/share/man/man6/%s.6", currentCps->program); + else snprintf(buf, MSG_SIZ, "%s/man6/xboard.6", MANDIR); + f = fopen(buf, "r"); if(!f && currentCps) { // engine manual could be in two places - snprintf(buf, MSG_SIZ, "/usr/man/man6/%s.6", currentCps->program); + snprintf(buf, MSG_SIZ, "/usr/share/man/man6/%s.6", currentCps->program); f= fopen(buf, "r"); } if(f) {