diff options
author | kientzle <kientzle@FreeBSD.org> | 2008-03-14 22:44:07 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2008-03-14 22:44:07 +0000 |
commit | baaf82407d70a77cc12b5f5ef4223deb11271f5d (patch) | |
tree | d3ca3114bbf2c7e3b556f9ecb76e803b9d227037 /lib | |
parent | 205982039c7596ec14313c9b0692f7c4028e646f (diff) | |
download | FreeBSD-src-baaf82407d70a77cc12b5f5ef4223deb11271f5d.zip FreeBSD-src-baaf82407d70a77cc12b5f5ef4223deb11271f5d.tar.gz |
Since "length" computes the length of a string and is used as an
argument to malloc(3), it should be size_t, not int.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libarchive/archive_entry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libarchive/archive_entry.c b/lib/libarchive/archive_entry.c index cc7e4d3..ccb7854 100644 --- a/lib/libarchive/archive_entry.c +++ b/lib/libarchive/archive_entry.c @@ -1150,7 +1150,7 @@ const wchar_t * archive_entry_acl_text_w(struct archive_entry *entry, int flags) { int count; - int length; + size_t length; const wchar_t *wname; const wchar_t *prefix; wchar_t separator; |