Skip to content
Snippets Groups Projects
Commit b959bcb5 authored by Sven M. Hallberg's avatar Sven M. Hallberg
Browse files

fix an array index

parent 636f741d
No related branches found
No related tags found
No related merge requests found
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
} while(0) } while(0)
#define g_check_stringmap_absent(table, key) do { \ #define g_check_stringmap_absent(table, key) do { \
bool end = (key[strlen(key)-2] == '$'); \ bool end = (key[strlen(key)-1] == '$'); \
if(h_stringmap_present(table, (uint8_t *)key, strlen(key), end)) { \ if(h_stringmap_present(table, (uint8_t *)key, strlen(key), end)) { \
g_test_message("Check failed: \"%s\" shouldn't have been in map, but was", key); \ g_test_message("Check failed: \"%s\" shouldn't have been in map, but was", key); \
g_test_fail(); \ g_test_fail(); \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment