projects
/
profile
/
ivi
/
murphy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcf9490
)
common/test: fix a sizeof-thinko.
author
Krisztian Litkey
<kli@iki.fi>
Mon, 11 Nov 2013 20:14:35 +0000
(22:14 +0200)
committer
Krisztian Litkey
<kli@iki.fi>
Mon, 11 Nov 2013 20:22:13 +0000
(22:22 +0200)
src/common/tests/mm-test.c
patch
|
blob
|
history
diff --git
a/src/common/tests/mm-test.c
b/src/common/tests/mm-test.c
index
fc9ae57
..
30200a5
100644
(file)
--- a/
src/common/tests/mm-test.c
+++ b/
src/common/tests/mm-test.c
@@
-151,7
+151,7
@@
static int obj_check(obj_t *obj, int alloced)
char check[sizeof(obj_t)];
memset(check, POISON, sizeof(check));
- if (memcmp(check, obj, sizeof(obj)))
+ if (memcmp(check, obj, sizeof(
*
obj)))
error("Object %p not properly poisoned.", obj);
}