Fix dead loop if locale contains / and not all categories specified
PR: 14742 Submitted by: peter@wahoo.com.tw
This commit is contained in:
parent
9b098bd4ca
commit
5d1706df0d
@ -169,9 +169,11 @@ setlocale(category, locale)
|
||||
++locale;
|
||||
while (*++r && *r != '/');
|
||||
} while (*locale);
|
||||
while (i < _LC_LAST)
|
||||
while (i < _LC_LAST) {
|
||||
(void)strcpy(new_categories[i],
|
||||
new_categories[i-1]);
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user