projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ddc004
)
fix bug 4464 for real. I am dumb.
author
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 6 Aug 2008 08:44:09 +0000
(08:44 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 6 Aug 2008 08:44:09 +0000
(08:44 -0000)
libbb/xrealloc_vector.c
patch
|
blob
|
history
diff --git
a/libbb/xrealloc_vector.c
b/libbb/xrealloc_vector.c
index 43c34b720867b458739cbc564e06b63a6e406553..bbd5ab8ac3d00605f0ac06499c463c3cf3d7e534 100644
(file)
--- a/
libbb/xrealloc_vector.c
+++ b/
libbb/xrealloc_vector.c
@@
-39,8
+39,7
@@
void* FAST_FUNC xrealloc_vector_helper(void *vector, unsigned sizeof_and_shift,
if (!(idx & (mask - 1))) {
sizeof_and_shift >>= 8; /* sizeof(vector[0]) */
vector = xrealloc(vector, sizeof_and_shift * (idx + mask + 1));
- vector = (char*)vector + (sizeof_and_shift * idx);
- memset(vector, 0, sizeof_and_shift * (mask + 1));
+ memset((char*)vector + (sizeof_and_shift * idx), 0, sizeof_and_shift * (mask + 1));
}
return vector;
}