Properly advance "x/y/z" form slash-pointers in some rare cases

PR:             60539
This commit is contained in:
Andrey A. Chernov 2003-12-24 10:16:46 +00:00
parent ba2bc772d1
commit ad4688e131

View File

@ -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],