forked from external/yambar
module/script: fix typo in memcmp()
Patch by Jan Beich
This commit is contained in:
parent
0bc0012c06
commit
264c051232
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ process_line(struct module *mod, const char *line, size_t len)
|
||||||
}
|
}
|
||||||
|
|
||||||
else if ((type_len > 6 && memcmp(type, "range:", 6) == 0) ||
|
else if ((type_len > 6 && memcmp(type, "range:", 6) == 0) ||
|
||||||
(type_len > 9 && memcmp(type, "realtime:", 9 == 0)))
|
(type_len > 9 && memcmp(type, "realtime:", 9) == 0))
|
||||||
{
|
{
|
||||||
const char *_start = type + 6;
|
const char *_start = type + 6;
|
||||||
const char *split = memchr(_start, '-', type_len - 6);
|
const char *split = memchr(_start, '-', type_len - 6);
|
||||||
|
|
Loading…
Add table
Reference in a new issue