diff options
-rw-r--r-- | src/xcb_errors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xcb_errors.c b/src/xcb_errors.c index 8c0a189..a48baf8 100644 --- a/src/xcb_errors.c +++ b/src/xcb_errors.c @@ -44,7 +44,7 @@ struct xcb_errors_context_t { }; static const char *get_strings_entry(const char *strings, unsigned int index) { - while (index > 0) + while (index-- > 0) strings += strlen(strings) + 1; return strings; } |