diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-09-28 19:19:11 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-09-28 19:19:11 +0200 |
commit | 2243c16eddbbded3537556cac2e483baffb6edaa (patch) | |
tree | e3ef36338dc0283abf5713beab6cb297d88b3ce6 | |
parent | e76e3245de4cddee3d7921cc67f1bfd30ce9cabd (diff) | |
download | cmumble-2243c16eddbbded3537556cac2e483baffb6edaa.tar.gz cmumble-2243c16eddbbded3537556cac2e483baffb6edaa.tar.bz2 cmumble-2243c16eddbbded3537556cac2e483baffb6edaa.zip |
find_by_id: Fix lookup (v2)
The offset should be taken from the (GList *)::data pointer,
not the list directly..
v2: Drop accidentially commited wip stuff
-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; } |