diff options
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c index 4850e04d1a..492ea32a74 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -2872,7 +2872,7 @@ tor_vsscanf(const char *buf, const char *pattern, va_list ap) unsigned *out = va_arg(ap, unsigned *); if (u > UINT_MAX) return n_matched; - *out = u; + *out = (unsigned) u; } ++pattern; ++n_matched; |