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
8207ac2d14
commit
1c9f0625c8
@ -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