summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1998-12-02 15:52:41 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1998-12-02 15:52:41 +0000
commit2af9c8eba6ccb501c32999073fd230c7199c2845 (patch)
treedc99a015bdce1aec89f0ed583e9f109b3984dd53 /test
parentbeb210d4d4ea2550fcc9de5a610b8fe6d9afc631 (diff)
Fix for demo program to replace extension instead of append (from Bill).
git-svn-id: file:///fltk/svn/fltk/trunk@110 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test')
-rw-r--r--test/demo.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/demo.cxx b/test/demo.cxx
index 3be366a7c..ca337c921 100644
--- a/test/demo.cxx
+++ b/test/demo.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: demo.cxx,v 1.3 1998/10/21 14:21:23 mike Exp $"
+// "$Id: demo.cxx,v 1.4 1998/12/02 15:52:41 mike Exp $"
//
// Main demo program for the Fast Light Tool Kit (FLTK).
//
@@ -255,7 +255,7 @@ int main(int argc, char **argv) {
create_the_forms();
char buf[256];
strcpy(buf, argv[0]);
- strcat(buf, ".menu");
+ filename_setext(buf,".menu");
const char *fname = buf;
int i = 0;
if (!Fl::args(argc,argv,i) || i < argc-1)
@@ -272,5 +272,5 @@ int main(int argc, char **argv) {
}
//
-// End of "$Id: demo.cxx,v 1.3 1998/10/21 14:21:23 mike Exp $".
+// End of "$Id: demo.cxx,v 1.4 1998/12/02 15:52:41 mike Exp $".
//