From d1808c6165626f5ee5c9664f0c61da57b5475307 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 18 Jul 2005 13:08:09 +0000 Subject: [PATCH] 'demo -s' would crash due to a missing argument on Fl::fatal() git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4432 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/demo.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/demo.cxx b/test/demo.cxx index 9859d0295..a7e7f4ff3 100644 --- a/test/demo.cxx +++ b/test/demo.cxx @@ -328,7 +328,7 @@ int main(int argc, char **argv) { const char *fname = buf; int i = 0; if (!Fl::args(argc,argv,i) || i < argc-1) - Fl::fatal("Usage: %s \n%s",Fl::help); + Fl::fatal("Usage: %s \n%s",argv[0],Fl::help); if (i < argc) fname = argv[i]; if (!load_the_menu(fname)) Fl::fatal("Can't open %s",fname);