Small patch for xrealloc_getcwd_or_warn

Denys Vlasenko vda.linux at googlemail.com
Sat Sep 29 19:19:53 UTC 2007


On Saturday 29 September 2007 04:16, Loïc Grenié wrote:
>    Removes a couple of bytes.

Thanks, applied.

The code also does not reallocate buffer _down_ to minimum needed size.
This can waste some RAM. I am adding cwd = xrealloc(cwd, strlen(cwd) + 1).
--
vda



More information about the busybox mailing list