Fix the window title.
authorJ.C. Jones <jc@insufficient.coffee>
Sun, 21 Sep 2003 13:36:43 +0000 (13:36 +0000)
committerJ.C. Jones <jc@insufficient.coffee>
Sun, 21 Sep 2003 13:36:43 +0000 (13:36 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@197 7f0cb862-5218-0410-a997-914c9d46530a

progs/demos/Fractals/fractals.c

index e867471..644b337 100644 (file)
@@ -206,7 +206,7 @@ void readConfigFile ( char *fnme )
 
   /* Read the window title */
   fgets ( inputline, 256, fptr ) ;
-  sscanf ( inputline, "%s", window_title ) ;
+  sscanf ( inputline, "%[a-zA-Z0-9!@#$%^&*()+=/\\_-\" ]", window_title ) ;
 
   /* Read a comment line */
   fgets ( inputline, 256, fptr ) ;