summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-09-28 13:57:14 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-09-28 13:57:14 +0200
commitc1cf0a71cfd8aa3441e57592e17de0d34823d305 (patch)
treedaa9d873d62cad56c5f246d6d4dea618d53bf3a5 /src/util.c
parentb83e8c2d09a357b2f06f10a9a41169c6c4061d46 (diff)
downloadcmumble-c1cf0a71cfd8aa3441e57592e17de0d34823d305.tar.gz
cmumble-c1cf0a71cfd8aa3441e57592e17de0d34823d305.tar.bz2
cmumble-c1cf0a71cfd8aa3441e57592e17de0d34823d305.zip
find_by_id: Fix lookup
The offset should be taken from the (GList *)::data pointer, not the list directly..
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index a98731b..b2549af 100644
--- a/src/util.c
+++ b/src/util.c
@@ -8,7 +8,7 @@ cmumble_find_by_id(GList *list, gsize member_offset, guint id)
GList *l;
for (l = list; l; l = l->next) {
- if (G_STRUCT_MEMBER(uint32_t, l, member_offset) == id) {
+ if (G_STRUCT_MEMBER(uint32_t, l->data, member_offset) == id) {
el = l->data;
break;
}