projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
013a5ca
)
Fixed segfault in --aspect scanning
author
Ingo Ruhnke
<grumbel@gmx.de>
Thu, 22 May 2008 22:24:16 +0000
(22:24 +0000)
committer
Ingo Ruhnke
<grumbel@gmx.de>
Thu, 22 May 2008 22:24:16 +0000
(22:24 +0000)
SVN-Revision: 5509
src/main.cpp
patch
|
blob
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index
a6ee4e7
..
c85ede6
100644
(file)
--- a/
src/main.cpp
+++ b/
src/main.cpp
@@
-315,7
+315,7
@@
static bool parse_commandline(int argc, char** argv)
{
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 {