fix incorrect range checks in wcsrtombs
authorRich Felker <dalias@aerifal.cx>
Thu, 4 Apr 2013 18:48:48 +0000 (14:48 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 4 Apr 2013 18:48:48 +0000 (14:48 -0400)
commit40b2b5fa94d3ae27293f4d572bdcf1c3a5ef590f
tree23316881f9eb48de0b7fbd2b46c1292ce877e9e7
parent50d9661d9b231f503b21e9d8787d1411b864d58a
fix incorrect range checks in wcsrtombs

negative values of wchar_t need to be treated in the non-ASCII case so
that they can properly generate EILSEQ rather than getting truncated
to 8bit values and stored in the output.
src/multibyte/wcsrtombs.c