diff options
| author | Ben Kaduk <kaduk@mit.edu> | 2012-06-27 15:14:00 -0400 |
|---|---|---|
| committer | Ben Kaduk <kaduk@mit.edu> | 2012-07-02 18:47:16 -0400 |
| commit | e4a3c43c403a24fcf21a2a67eddf831032ab7ec4 (patch) | |
| tree | f473784b42f2b82d6ccf504feb398adf5cad8479 /src/plugins/locate/python | |
| parent | 203de6ef59348a41f2702dabd554c3f1b12cd5da (diff) | |
| download | krb5-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
