Fix dead loop if locale contains / and not all categories specified

PR:		14742
Submitted by:	peter@wahoo.com.tw
This commit is contained in:
Andrey A. Chernov 1999-11-09 11:09:16 +00:00
parent 9b098bd4ca
commit 5d1706df0d

View File

@ -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++;
}
}
}