diff options
| -rw-r--r-- | test/demo.cxx | 1 |
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); |
