aboutsummaryrefslogtreecommitdiffhomepage
path: root/util.c
diff options
context:
space:
mode:
authorGravatar liljencrantz <liljencrantz@gmail.com>2008-01-14 10:57:45 +1000
committerGravatar liljencrantz <liljencrantz@gmail.com>2008-01-14 10:57:45 +1000
commit3743a5758b21a361dcbb72edbd98862329cb739a (patch)
tree3c3541ff54f05f2387e68d08c63243c654cd0dac /util.c
parente510d10c770f7d6b990f1cc5e2ca13092838b75a (diff)
The max size of the string buffer was too small. Push it up a bit.
darcs-hash:20080114005745-75c98-1bcad5c5e81d4257eb7e96e860f8c667f9ba3267.gz
Diffstat (limited to 'util.c')
-rw-r--r--util.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/util.c b/util.c
index cf776eb2..6c7b03c4 100644
--- a/util.c
+++ b/util.c
@@ -45,10 +45,12 @@
Maximum number of characters that can be inserted using a single
call to sb_printf. This is needed since vswprintf doesn't tell us
what went wrong. We don't know if we ran out of space or something
- else went wrong. Therefore we assume that any error is an out of
- memory-error and try again until we reach this size.
+ else went wrong. We assume that any error is an out of memory-error
+ and try again until we reach this size. After this size has been
+ reached, it is instead assumed that something was wrong with the
+ format string.
*/
-#define SB_MAX_SIZE 32767
+#define SB_MAX_SIZE (128*1024*1024)
/**
Handle oom condition. Default action is to print a stack trace and