1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-16 12:03:03 -05:00
Simon Tatham d527b1a886 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.

(cherry picked from commit 99f5fa34ab918894939c8aca00e44730223c0e54)
2020-06-14 15:49:36 +01:00
..
2020-02-09 08:51:37 +00:00
2019-03-31 10:35:10 +01:00
2019-10-14 19:42:37 +01:00
2020-02-09 08:51:37 +00:00
2020-02-09 08:51:37 +00:00
2019-10-14 19:42:37 +01:00
2020-06-14 15:49:36 +01:00
2019-10-14 19:42:37 +01:00
2019-10-14 19:42:37 +01:00
2020-02-09 08:51:37 +00:00