[Xcb-commit] xcb/util-cursor: cursor
Michael Stapelberg
stapelberg at kemper.freedesktop.org
Sat Nov 9 06:05:48 PST 2013
cursor/parse_cursor_file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit c6c04f73ebc307f04326de042e496bca84682f63
Author: Michael Stapelberg <michael at stapelberg.de>
Date: Sat Nov 9 15:02:38 2013 +0100
Bugfix: Properly load cursor files where not all cursors are suitable
This fixes https://bugs.freedesktop.org/show_bug.cgi?id=71060
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;
More information about the xcb-commit
mailing list