]> Savannah Git Hosting - gnulib.git/commit
localcharset: Avoid theoretical buffer overrun.
authorBruno Haible <bruno@clisp.org>
Fri, 2 Dec 2016 12:52:43 +0000 (13:52 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 2 Dec 2016 12:52:43 +0000 (13:52 +0100)
commitd1a0a9fba05af9994caaa145045c1e11affc385d
tree2264947c09f7c503a7fca0d3c453598b768990d4
parent349e4dea4f6713169d084e2b337f5e625bb79435
localcharset: Avoid theoretical buffer overrun.

* lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
return value from setlocale if it would lead to a buffer overrun.
ChangeLog
lib/localcharset.c