diff options
author | Guido van Rossum <guido@python.org> | 1997-01-14 15:43:41 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-01-14 15:43:41 (GMT) |
commit | 6f72f97c036bcc0779dc597a935b7250c55d1e8d (patch) | |
tree | 85f71ed56304a8a8a7ccc41c14b40fc1d56d111c /Objects | |
parent | 7a515b9156fba283bf6327c619d0c7c800f7857a (diff) | |
download | cpython-6f72f97c036bcc0779dc597a935b7250c55d1e8d.zip cpython-6f72f97c036bcc0779dc597a935b7250c55d1e8d.tar.gz cpython-6f72f97c036bcc0779dc597a935b7250c55d1e8d.tar.bz2 |
Increased buffer sizes used by hex() and oct() -- on 64-bit or 128-bit
machines, the string may get longer than 20 characters!
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/intobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/intobject.c b/Objects/intobject.c index 76d9145..1f1298f 100644 --- a/Objects/intobject.c +++ b/Objects/intobject.c @@ -721,7 +721,7 @@ static object * int_oct(v) intobject *v; { - char buf[20]; + char buf[100]; long x = v -> ob_ival; if (x == 0) strcpy(buf, "0"); @@ -734,7 +734,7 @@ static object * int_hex(v) intobject *v; { - char buf[20]; + char buf[100]; long x = v -> ob_ival; sprintf(buf, "0x%lx", x); return newstringobject(buf); |