Properly advance "x/y/z" form slash-pointers in some rare cases
PR: 60539
This commit is contained in:
parent
ba2bc772d1
commit
ad4688e131
@ -187,11 +187,11 @@ setlocale(category, locale)
|
||||
(void)strlcpy(new_categories[i], locale,
|
||||
len + 1);
|
||||
i++;
|
||||
while (*r == '/')
|
||||
r++;
|
||||
locale = r;
|
||||
while (*locale == '/')
|
||||
++locale;
|
||||
while (*++r && *r != '/')
|
||||
;
|
||||
while (*r && *r != '/')
|
||||
r++;
|
||||
} while (*locale);
|
||||
while (i < _LC_LAST) {
|
||||
(void)strcpy(new_categories[i],
|
||||
|
Loading…
Reference in New Issue
Block a user