diff options
author | rubidium <rubidium@openttd.org> | 2015-01-01 20:50:43 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2015-01-01 20:50:43 +0000 |
commit | 730773f5f1eb68888738d9022afa7e41469e1f2d (patch) | |
tree | 1dfbb8da6ee943dc2a66ab7d3df439c7b793398d /src/strings.cpp | |
parent | 85b93d0e5ef689be756c923bd21b046e48eb019e (diff) | |
download | openttd-730773f5f1eb68888738d9022afa7e41469e1f2d.tar.xz |
(svn r27102) -Fix [FS#6194]: money values would end up wrong in strings when outside of the bounds of a 32 bits integer
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 8ce2fde07..a7e60f846 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -874,7 +874,7 @@ static char *FormatString(char *buff, const char *str_arg, StringParameters *arg bool lookup = (l == SCC_ENCODED); if (lookup) s += len; - param = (int32)strtoul(s, &p, 16); + param = strtoull(s, &p, 16); if (lookup) { if (param >= TAB_SIZE) { |