diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2013-11-09 15:02:38 +0100 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2013-11-09 15:03:12 +0100 |
commit | c6c04f73ebc307f04326de042e496bca84682f63 (patch) | |
tree | 53a4ecfd365d28ad9232c67971e92c3e2fe3a553 | |
parent | c453d4baceaead514c814b825cdd9b517c6bcd8c (diff) |
Bugfix: Properly load cursor files where not all cursors are suitable
This fixes https://bugs.freedesktop.org/show_bug.cgi?id=71060
-rw-r--r-- | cursor/parse_cursor_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cursor/parse_cursor_file.c b/cursor/parse_cursor_file.c index b944c4a..30c6a58 100644 --- a/cursor/parse_cursor_file.c +++ b/cursor/parse_cursor_file.c @@ -138,7 +138,7 @@ int parse_cursor_file(xcb_cursor_context_t *c, const int fd, xcint_image_t **ima for (int n = 0; n < cf.header.ntoc; n++) { xcint_chunk_header_t chunk; /* for convenience */ - xcint_image_t *i = &((*images)[n]); + xcint_image_t *i = &((*images)[cnt]); uint32_t numpixels = 0; uint32_t *p = NULL; |