From c24634958b7f2bbfdbe2b1bbc88703fead251204 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 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 -- 1.7.0.4