mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +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