Files
heimdal/lib
Nicolas Williams b2f6ba0fff Revert "lib: Fix printing a short into portstr"
This reverts commit ccb63bb0aa, which was
unnecessary and broke tests/kdc/check-kadmin (and other things).

host->port happens to be an unsigned short, so that promotion to an integer in
the snprintf() call is safe in that the promoted value will still be
non-negative, and no larger than an unsigned short's maximum value.  We're
still assuming that 7 bytes is sufficient to hold the text representation of
that maximum value, which indeed it is, assuming sizeof(unsigned short) == 2
and CHAR_BIT == 8, which are fair assumptions here.  A better patch, if we
needed it, would be to just make portstr[] an array of 11 char, or perhaps make
it a VLA (but we can't yet use VLAs, I don't think, because of older Windows
systems that must be supported still).
2017-10-05 10:43:42 -05:00
..
2017-05-26 23:24:30 -04:00
2017-04-29 01:05:58 -04:00
2017-05-26 23:24:30 -04:00
2017-04-29 01:05:59 -04:00
2017-05-26 23:24:30 -04:00
2017-03-10 15:47:43 -05:00
2017-04-29 01:05:59 -04:00
2016-11-08 15:48:40 -05:00
2017-03-19 18:55:51 -04:00
2016-12-15 12:15:56 -06:00
2015-03-21 15:44:48 -04:00
2016-12-15 12:23:09 -06:00