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

PR:		14742
Submitted by:	peter@wahoo.com.tw
This commit is contained in:
ache 1999-11-09 11:09:16 +00:00
parent 8207ac2d14
commit 1c9f0625c8

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