projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
udhcpc: fix a problem with binary-encoded options #2
[oweals/busybox.git]
/
libbb
/
platform.c
diff --git
a/libbb/platform.c
b/libbb/platform.c
index d241d25a7679d4bb89efc2b7ee5b013e1c74620b..19734517b13bddfc7c606301019e2f93ae9ffb5d 100644
(file)
--- a/
libbb/platform.c
+++ b/
libbb/platform.c
@@
-33,7
+33,7
@@
int FAST_FUNC vasprintf(char **string_ptr, const char *format, va_list p)
if (r < 128) {
va_end(p2);
*string_ptr = strdup(buf);
- return
r
;
+ return
(*string_ptr ? r : -1)
;
}
*string_ptr = malloc(r+1);