diff options
author | kientzle <kientzle@FreeBSD.org> | 2004-08-08 02:22:48 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2004-08-08 02:22:48 +0000 |
commit | 6b8c5a5e67931e028e3dc8aaee14961eda10dab8 (patch) | |
tree | 183f73ec4ffe4124683eedb00456daec1079c2d4 /lib/libarchive/archive_read_support_format_tar.c | |
parent | 92956ea0cd6a94375374708ae3ac9ef76311b0ca (diff) | |
download | FreeBSD-src-6b8c5a5e67931e028e3dc8aaee14961eda10dab8.zip FreeBSD-src-6b8c5a5e67931e028e3dc8aaee14961eda10dab8.tar.gz |
Oops. Use "unsigned long" instead of "int" for the intermediate variables
in wide-character conversions, since it's guaranteed to be large enough.
Thanks to: Andrey Chernov
Diffstat (limited to 'lib/libarchive/archive_read_support_format_tar.c')
-rw-r--r-- | lib/libarchive/archive_read_support_format_tar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libarchive/archive_read_support_format_tar.c b/lib/libarchive/archive_read_support_format_tar.c index 76a228e..e91ddc4 100644 --- a/lib/libarchive/archive_read_support_format_tar.c +++ b/lib/libarchive/archive_read_support_format_tar.c @@ -1519,7 +1519,7 @@ static size_t UTF8_mbrtowc(wchar_t *pwc, const char *s, size_t n) { int ch, i, len, mask; - int lbound, wch; + unsigned long lbound, wch; if (s == NULL) /* Reset to initial shift state (no-op) */ |