diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-09-28 13:57:14 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-09-28 13:57:14 +0200 |
commit | c1cf0a71cfd8aa3441e57592e17de0d34823d305 (patch) | |
tree | daa9d873d62cad56c5f246d6d4dea618d53bf3a5 /src/util.c | |
parent | b83e8c2d09a357b2f06f10a9a41169c6c4061d46 (diff) | |
download | cmumble-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |