summaryrefslogtreecommitdiffstats
path: root/src/plugins/locate/python
diff options
context:
space:
mode:
authorBen Kaduk <kaduk@mit.edu>2012-06-27 15:14:00 -0400
committerBen Kaduk <kaduk@mit.edu>2012-07-02 18:47:16 -0400
commite4a3c43c403a24fcf21a2a67eddf831032ab7ec4 (patch)
treef473784b42f2b82d6ccf504feb398adf5cad8479 /src/plugins/locate/python
parent203de6ef59348a41f2702dabd554c3f1b12cd5da (diff)
downloadkrb5-e4a3c43c403a24fcf21a2a67eddf831032ab7ec4.tar.gz
krb5-e4a3c43c403a24fcf21a2a67eddf831032ab7ec4.tar.xz
krb5-e4a3c43c403a24fcf21a2a67eddf831032ab7ec4.zip
Improve printf handling of size_t args
The %*s format takes two arguments, a precision length/width and an actual string; the length is specified as a signed integer. The size_t length field of the gss_buffer_desc type is an unsigned type, which must be cast or otherwise converted to a signed type to match the format string expectations. I do not think that the length will approach SIZE_T_MAX in practice, due to buffer constraints, so do not include handling for the edge case. There is a '%zu' format string for printing size_ts, but it is not available everywhere (e.g., AIX). Instead, use the unsigned long long abomination.
Diffstat (limited to 'src/plugins/locate/python')
0 files changed, 0 insertions, 0 deletions