1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-16 12:03:03 -05:00
Simon Tatham 99f5fa34ab uxucs.c: fix type of wcrtomb return value.
wcrtomb returns a size_t, so it's silly to immediately assign it into
an int variable. Apparently running gcc with LTO enabled points this
out as an error.

This was benign as far as I can see: the obvious risk of integer
overflow could only happen if the OS wanted to convert a single wide
character into more than 2^31 bytes, and the test of the return value
against (size_t)-1 for an error check seems to work anyway in
practice, although I suspect that's only because of implementation-
defined behaviour in gcc at the point where the size_t is narrowed to
a signed int.
2020-05-16 16:24:53 +01:00
..
2019-03-31 10:35:10 +01:00
2019-10-14 19:42:37 +01:00
2020-03-10 21:27:57 +00:00
2020-01-30 06:40:21 +00:00
2020-03-10 21:11:14 +00:00
2019-10-14 19:42:37 +01:00
2020-01-21 20:24:04 +00:00