From 871e5c03265fe0dad02749d0566976689fb54f84 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Fri, 14 Mar 2008 22:44:07 +0000 Subject: [PATCH] Since "length" computes the length of a string and is used as an argument to malloc(3), it should be size_t, not int. --- lib/libarchive/archive_entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libarchive/archive_entry.c b/lib/libarchive/archive_entry.c index cc7e4d30582b..ccb7854f5593 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;