We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ae5ea48 + 1d6a966 commit fb8f6faCopy full SHA for fb8f6fa
1 file changed
src/regexp.c
@@ -436,7 +436,7 @@ typedef enum {
436
*/
437
static inline bool
438
pm_regexp_property_name_matches(const uint8_t *name, size_t length, const char *target) {
439
- return target[length] == '\0' && pm_strncasecmp(name, (const uint8_t *) target, length) == 0;
+ return strlen(target) == length && pm_strncasecmp(name, (const uint8_t *) target, length) == 0;
440
}
441
442
/**
0 commit comments