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
This commit is contained in:
Manolo Gouy 2015-04-08 15:44:57 +00:00
parent 3ec8bab10e
commit 3e6b497b64

View File

@ -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);