From 7caad569e3ea1ac3ea3bc0d6beaec68e1b7cc3bf Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Mon, 25 Jan 2010 18:07:07 +0000 Subject: [PATCH] Fix crash, if -r used without arg or with one arg only git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@211 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/dcf4783f2241e2265c71498d44b336a668ef76a9 Author: [CST] Focus Date: 2010-01-25 (Mon, 25 Jan 2010) --- src/neutrino.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/neutrino.cpp b/src/neutrino.cpp index dcb80252c..088f48714 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -1897,10 +1897,11 @@ void CNeutrinoApp::CmdParser(int argc, char **argv) zapit_debug = 1; } else if (!strcmp(argv[x], "-r")) { + x++; if (x < argc) - xres = atoi(argv[++x]); + xres = atoi(argv[x++]); if (x < argc) - yres = atoi(argv[++x]); + yres = atoi(argv[x++]); } else { dprintf(DEBUG_NORMAL, "Usage: neutrino [-u | --enable-update] [-f | --enable-flash] "