From ff35ac10e995043ddbc05154f185784b9918d48b Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 14 Jan 2014 09:55:40 +0100 Subject: [PATCH] Fix ManProc for OS X --- gtk/xboard.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) 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 -- 1.7.0.4