Fix status check for correct end of sequence
This commit is contained in:
parent
409d26bf7b
commit
6cae9e0465
@ -102,11 +102,12 @@ status_parse(struct status_ctx *ctx)
|
|||||||
|
|
||||||
p = ++dstr;
|
p = ++dstr;
|
||||||
|
|
||||||
/* Search end of sequence (] without \ behind) */
|
/* Search for correct end of sequence (] without \ behind) */
|
||||||
for(end = strchr(p, ']'); *(end - 1) == '\\';)
|
if((end = strchr(p, ']')))
|
||||||
end = strchr(end + 1, ']');
|
while(*(end - 1) == '\\')
|
||||||
|
end = strchr(end + 1, ']');
|
||||||
|
|
||||||
if(!(strchr("sRi", *p)) || !end )
|
if(!(strchr("sRi", *p)) || !end)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Then parse & list it */
|
/* Then parse & list it */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user