diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2009-08-25 22:47:24 +0400 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2009-08-25 22:47:24 +0400 |
commit | eb9194f52c2008366326319582c7329550d4708e (patch) | |
tree | 8dc2b90eb8051b4a25eb82175b017933d88b7e29 /newlib/libc/stdlib/sb_charsets.c | |
parent | c177980e756d448fb7a9afc9b814fa3da3cc7bb8 (diff) |
2009-08-25 Andy Koppe <andy.koppe@gmail.com>
* libc/stdlib/sb_charsets.c (__micro_atoi): Allow five-digit codepage
numbers.
* libc/locale/locale.c (loadlocale): Set MB_CUR_MAX to 1 for KOI8
charsets.
* libc/stdlib/local.h (__cp_conv): Remove incorrect number of codepages.
Diffstat (limited to 'newlib/libc/stdlib/sb_charsets.c')
-rw-r--r-- | newlib/libc/stdlib/sb_charsets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/sb_charsets.c b/newlib/libc/stdlib/sb_charsets.c index 03c92064c..dce4855d7 100644 --- a/newlib/libc/stdlib/sb_charsets.c +++ b/newlib/libc/stdlib/sb_charsets.c @@ -625,7 +625,7 @@ __micro_atoi (const char *s) return -1; while (*s) { - if (*s < '0' || *s > '9' || ret >= 10000) + if (*s < '0' || *s > '9' || ret >= 100000) return -1; ret = 10 * ret + (*s++ - '0'); } |