projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3e2818
)
libbb: fix vasprintf implementation
author
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 17 Nov 2009 04:33:47 +0000
(
05:33
+0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 17 Nov 2009 04:33:47 +0000
(
05:33
+0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/platform.c
patch
|
blob
|
history
diff --git
a/libbb/platform.c
b/libbb/platform.c
index
fdd3882
..
17ad3f7
100644
(file)
--- a/
libbb/platform.c
+++ b/
libbb/platform.c
@@
-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);