projects
/
platform
/
upstream
/
libsolv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
098014f
)
- shut up g++
author
Michael Schroeder
<mls@suse.de>
Wed, 19 Mar 2008 18:40:30 +0000
(18:40 +0000)
committer
Michael Schroeder
<mls@suse.de>
Wed, 19 Mar 2008 18:40:30 +0000
(18:40 +0000)
src/util.h
patch
|
blob
|
history
diff --git
a/src/util.h
b/src/util.h
index
e955c07
..
d2748f2
100644
(file)
--- a/
src/util.h
+++ b/
src/util.h
@@
-41,7
+41,7
@@
static inline void *sat_extend(void *buf, size_t len, size_t nmemb, size_t size,
static inline void *sat_zextend(void *buf, size_t len, size_t nmemb, size_t size, size_t block)
{
buf = sat_extend(buf, len, nmemb, size, block);
- memset(buf + len * size, 0, nmemb * size);
+ memset(
(char *)
buf + len * size, 0, nmemb * size);
return buf;
}