[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: Small patch for xrealloc_getcwd_or_warn
From: Denys Vlasenko <vda.linux () googlemail ! com>
Date: 2007-09-29 19:19:53
Message-ID: 200709292019.53964.vda.linux () googlemail ! com
[Download RAW message or body]
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
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic