[Supertux-Commit] r5509 - trunk/supertux/src

grumbel at millhouse.dreamhost.com grumbel at millhouse.dreamhost.com
Thu May 22 15:24:17 PDT 2008


Author: grumbel
Date: 2008-05-22 15:24:16 -0700 (Thu, 22 May 2008)
New Revision: 5509

Modified:
   trunk/supertux/src/main.cpp
Log:
Fixed segfault in --aspect scanning

Modified: trunk/supertux/src/main.cpp
===================================================================
--- trunk/supertux/src/main.cpp	2008-05-22 20:20:43 UTC (rev 5508)
+++ trunk/supertux/src/main.cpp	2008-05-22 22:24:16 UTC (rev 5509)
@@ -315,7 +315,7 @@
         {
           int aspect_width  = 4;
           int aspect_height = 3;
-          if(sscanf(argv[++i], "%d:%d", &aspect_width, &aspect_height) != 2) {
+          if(sscanf(argv[i], "%d:%d", &aspect_width, &aspect_height) != 2) {
             print_usage(argv[0]);
             throw std::runtime_error("Invalid aspect spec, should be WIDTH:HEIGHT");
           } else {




More information about the Supertux-Commit mailing list