mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-23 09:23:00 +01:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53050
@ -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