diff options
author | Damien Miller <djm@mindrot.org> | 2014-08-22 17:48:27 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-08-22 17:48:27 +1000 |
commit | 4d69aeabd6e60afcdc7cca177ca751708ab79a9d (patch) | |
tree | 05102c5d1a20961590478961f153f73914d2fe02 /openbsd-compat/bsd-snprintf.c | |
parent | 0c11f1ac369d2c0aeb0ab0458a7cd04c72fe5e9e (diff) |
- (djm) [openbsd-compat/bsd-snprintf.c] Fix compilation failure (prototype/
definition mismatch) and warning for broken/missing snprintf case.
Diffstat (limited to 'openbsd-compat/bsd-snprintf.c')
-rw-r--r-- | openbsd-compat/bsd-snprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/bsd-snprintf.c b/openbsd-compat/bsd-snprintf.c index 975991e7..23a63598 100644 --- a/openbsd-compat/bsd-snprintf.c +++ b/openbsd-compat/bsd-snprintf.c @@ -538,7 +538,7 @@ fmtstr(char *buffer, size_t *currlen, size_t maxlen, } while (*value && (cnt < max)) { DOPR_OUTCH(buffer, *currlen, maxlen, *value); - *value++; + value++; ++cnt; } while ((padlen < 0) && (cnt < max)) { @@ -553,7 +553,7 @@ fmtstr(char *buffer, size_t *currlen, size_t maxlen, static int fmtint(char *buffer, size_t *currlen, size_t maxlen, - LLONG value, int base, int min, int max, int flags) + intmax_t value, int base, int min, int max, int flags) { int signvalue = 0; unsigned LLONG uvalue; |