From: H.G. Muller Date: Tue, 14 Jan 2014 08:55:40 +0000 (+0100) Subject: Fix ManProc for OS X X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=ff35ac10e995043ddbc05154f185784b9918d48b;p=xboard.git Fix ManProc for OS X --- diff --git a/gtk/xboard.c b/gtk/xboard.c index d59adf1..2a46f09 100644 --- a/gtk/xboard.c +++ b/gtk/xboard.c @@ -1786,7 +1786,9 @@ void ManProc () { // called from menu #ifdef __APPLE__ - system("%s ./man.command", appData.sysOpen); + char buf[MSG_SIZ]; + snprintf(buf, MSG_SIZ, "%s ./man.command", appData.sysOpen); + system(buf); #else system("xterm -e man xboard &"); #endif