From e5486b24d1f7ff83bf1a8792b4c98c9ad03b3809 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 31 Aug 2016 16:59:22 +0000 Subject: [PATCH] Fix Mac OS launching of the browser test program. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11911 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/browser.cxx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/test/browser.cxx b/test/browser.cxx index 7fd17f082..a976230ef 100644 --- a/test/browser.cxx +++ b/test/browser.cxx @@ -149,16 +149,13 @@ int main(int argc, char **argv) { done = browser->load(fname); } #elif defined(__APPLE__) - if ( i == argc ) - { - char buf[2048]; - strcpy(buf, argv[0]); - char *slash = strrchr(buf, '/'); - if (slash) { - strcpy(slash, "/../../../browser.cxx"); - } - done = browser->load(buf); + char buf[2048]; + strcpy(buf, argv[0]); + char *slash = strrchr(buf, '/'); + if (slash) { + strcpy(slash, "/../../../browser.cxx"); } + done = browser->load(buf); #endif if ( !done ) {