Commit 1959f78c authored by Timothy Stack's avatar Timothy Stack

Patch from Brett Wilson that fixes a problem with key matching in

event_arg_get().
parent 27548c9d
......@@ -1692,7 +1692,7 @@ int event_arg_get(char *args, char *key, char **value_out)
errno = EINVAL;
break;
}
else if (strncasecmp(args, key, (key_end - args)) != 0) {
else if ((strlen(key) != (key_end-args)) || (strncasecmp(args, key, (key_end - args)) != 0)) {
errno = ESRCH;
}
else if (key_end[1] == '{') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment