summaryrefslogtreecommitdiff
path: root/cursor/parse_cursor_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'cursor/parse_cursor_file.c')
-rw-r--r--cursor/parse_cursor_file.c2
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;