mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-24 12:19:49 +00:00
libbb: fix vasprintf implementation
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
f3e2818895
commit
995f15452a
@ -30,7 +30,8 @@ int FAST_FUNC vasprintf(char **string_ptr, const char *format, va_list p)
|
||||
|
||||
if (r < 128) {
|
||||
va_end(p2);
|
||||
return xstrdup(buf);
|
||||
*string_ptr = xstrdup(buf);
|
||||
return r;
|
||||
}
|
||||
|
||||
*string_ptr = xmalloc(r+1);
|
||||
|
Loading…
Reference in New Issue
Block a user