summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2015-04-08 15:44:57 +0000
committerManolo Gouy <Manolo>2015-04-08 15:44:57 +0000
commit3e6b497b64f098cf5e951eac63883b946136e407 (patch)
tree5339ec5b592c0c9723870068f6ebd43f0dd38517 /test
parent3ec8bab10efb8ffb403aa81b439e9635fe641f8f (diff)
Mac OS: fix demo for programs that are run with an argument.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10690 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test')
-rw-r--r--test/demo.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/demo.cxx b/test/demo.cxx
index 0730d22fe..ca898a2ab 100644
--- a/test/demo.cxx
+++ b/test/demo.cxx
@@ -301,6 +301,7 @@ void dobut(Fl_Widget *, long arg)
char *name = new char[strlen(cmd) + 5];
strcpy(name, cmd);
+ if (arg) name[arg-cmd] = 0;
strcat(name, ".app");
// check whether app bundle exists
if ( ! fl_filename_isdir(name) ) strcpy(name, cmd);