diff options
author | Uli Schlachter <psychon@znc.in> | 2015-03-24 21:57:49 +0100 |
---|---|---|
committer | Uli Schlachter <psychon@znc.in> | 2015-03-24 21:57:49 +0100 |
commit | c4f199fdae69f7e9b0479ce1565fa1fba9fb5d24 (patch) | |
tree | 18eaba50483935e8488c6460e654836b4569bd8b | |
parent | fbd56b6b757a0c34949fa5a86e1ce2d8e184e6e6 (diff) |
Fix get_strings_entry() to actually work
Signed-off-by: Uli Schlachter <psychon@znc.in>
-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; } |