aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Warren-Smith2011-08-18 22:51:07 +1000
committerChris Warren-Smith2011-08-21 16:39:09 +1000
commit68f2ec53f728fdfe3912517df0e13f11d90d8a92 (patch)
treef017e935b4df65a93f0cfac66adca806034e27e0
parentf01882a6e0bedce7c7d4411ba956681d7e3aa163 (diff)
downloadscummvm-rg350-68f2ec53f728fdfe3912517df0e13f11d90d8a92.tar.gz
scummvm-rg350-68f2ec53f728fdfe3912517df0e13f11d90d8a92.tar.bz2
scummvm-rg350-68f2ec53f728fdfe3912517df0e13f11d90d8a92.zip
BADA: Fix to return correct integer values
-rwxr-xr-xbackends/platform/bada/sscanf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/platform/bada/sscanf.cpp b/backends/platform/bada/sscanf.cpp
index ddf7eafe94..8eab3ee5d1 100755
--- a/backends/platform/bada/sscanf.cpp
+++ b/backends/platform/bada/sscanf.cpp
@@ -31,7 +31,7 @@
//
bool scanInt(const char **in, va_list *ap, int max) {
- while (**in && **in == ' ') {
+ while (**in && (**in == ' ' || **in == '0')) {
(*in)++;
}