mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
The max size of the string buffer was too small. Push it up a bit.
darcs-hash:20080114005745-75c98-1bcad5c5e81d4257eb7e96e860f8c667f9ba3267.gz
This commit is contained in:
parent
e510d10c77
commit
3743a5758b
8
util.c
8
util.c
|
@ -45,10 +45,12 @@
|
||||||
Maximum number of characters that can be inserted using a single
|
Maximum number of characters that can be inserted using a single
|
||||||
call to sb_printf. This is needed since vswprintf doesn't tell us
|
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
|
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
|
else went wrong. We assume that any error is an out of memory-error
|
||||||
memory-error and try again until we reach this size.
|
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
|
Handle oom condition. Default action is to print a stack trace and
|
||||||
|
|
Loading…
Reference in New Issue
Block a user