diff options
author | Ron Yorston <rmy@pobox.com> | 2021-08-15 13:46:35 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-08-15 14:32:09 +0100 |
commit | 39affac891d2683cf6c09901d2c3cf69bf2c95fa (patch) | |
tree | 2fc3a5c9f13289ec8541dfb94bcbc2b582c12f59 /shell | |
parent | fb46f0422517cba6d566131054117738e826424c (diff) | |
download | busybox-w32-39affac891d2683cf6c09901d2c3cf69bf2c95fa.tar.gz busybox-w32-39affac891d2683cf6c09901d2c3cf69bf2c95fa.tar.bz2 busybox-w32-39affac891d2683cf6c09901d2c3cf69bf2c95fa.zip |
printf: improved error handling
The printf applet is NOFORK and is used to implement the printf
command in ash. It should therefore be careful about handling
memory allocation failures.
If vasprintf() or realloc() fail the applet now carries on as best
it can. This may result in some lost output but at least the shell
will survive.
Saves 32 bytes.
Diffstat (limited to 'shell')
0 files changed, 0 insertions, 0 deletions