diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-03-20 21:48:13 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-03-20 21:48:13 -0700 |
commit | 66c9a8587cb22b031b5234cc5fcc93354574ca9a (patch) | |
tree | ac168677af5fd2cebab7bd90608affb1bb502df0 /stream.c | |
parent | fe69004a3798e896cf7349149c6c37ec58676b45 (diff) | |
download | txr-66c9a8587cb22b031b5234cc5fcc93354574ca9a.tar.gz txr-66c9a8587cb22b031b5234cc5fcc93354574ca9a.tar.bz2 txr-66c9a8587cb22b031b5234cc5fcc93354574ca9a.zip |
* stream.c (vformat): Use larger num_buf buffer so we don't
overrun. IEEE double floats can go to e+-308.
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -967,7 +967,7 @@ val vformat(val stream, val fmtstr, va_list vl) for (;;) { val obj; wchar_t ch = *fmt++; - char num_buf[256], *pnum = num_buf; + char num_buf[512], *pnum = num_buf; switch (state) { case vf_init: |