diff options
| author | Tim Kientzle <kientzle@FreeBSD.org> | 2008-06-15 11:15:12 +0000 |
|---|---|---|
| committer | Tim Kientzle <kientzle@FreeBSD.org> | 2008-06-15 11:15:12 +0000 |
| commit | 4a9c863c876bdc69bccc24605435d22731c4662b (patch) | |
| tree | 465b35863d0a6ee820d7a6f515b4aed989b2c000 | |
| parent | 936d273c3ae5d1589b5789392b3603bed46af91c (diff) | |
Notes
| -rw-r--r-- | lib/libarchive/archive_string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libarchive/archive_string.c b/lib/libarchive/archive_string.c index c9a04d743672..e3387c170148 100644 --- a/lib/libarchive/archive_string.c +++ b/lib/libarchive/archive_string.c @@ -206,7 +206,7 @@ static int my_wcstombs(struct archive_string *as, const wchar_t *w, int (*func)(char *, wchar_t)) { - size_t n; + int n; char *p; char buff[256]; @@ -227,7 +227,7 @@ my_wcstombs(struct archive_string *as, const wchar_t *w, p = buff; } n = (*func)(p, *w++); - if (n == (size_t)-1) + if (n == -1) return (-1); p += n; } |
