summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-08-31 16:59:22 +0000
committerManolo Gouy <Manolo>2016-08-31 16:59:22 +0000
commite5486b24d1f7ff83bf1a8792b4c98c9ad03b3809 (patch)
tree647e43e88e1414b8bf3af7695996867365d46324 /test
parentb1e25e4838b6ff9bbc2e45aeee09381ebd8c38e0 (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/browser.cxx15
1 files 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 )
{