pacman: check for end of string when stripping ascii escapes
This commit is contained in:
parent
da4b590bce
commit
45ce932fd0
1 changed files with 1 additions and 1 deletions
|
@ -462,7 +462,7 @@ static size_t string_length(const char *s)
|
|||
int iter = 0;
|
||||
for(; *s; s++) {
|
||||
if(*s == '\033') {
|
||||
while(*s != 'm') {
|
||||
while(*s != 'm' && *s != '\0') {
|
||||
s++;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue