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=c24634958b7f2bbfdbe2b1bbc88703fead251204;p=xboard.git Fix ManProc for OS X --- diff --git a/gtk/xboard.c b/gtk/xboard.c index 6769a19..ecf36dd 100644 --- a/gtk/xboard.c +++ b/gtk/xboard.c @@ -1807,7 +1807,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