diff options
author | Tim Kientzle <kientzle@gmail.com> | 2011-11-20 17:20:16 -0500 |
---|---|---|
committer | Tim Kientzle <kientzle@gmail.com> | 2011-11-20 17:20:16 -0500 |
commit | 7e46d04416a4c3fd93441fa951d7ab40e0812857 (patch) | |
tree | 642f9a6ecb2a15c584c09fed4a3ef1888f22dc23 /libarchive/archive_read_support_format_ar.c | |
parent | 0f989c568cf1e2ad5536f491281dc7fb12cc1df7 (diff) | |
download | libarchive-7e46d04416a4c3fd93441fa951d7ab40e0812857.tar.gz |
Issue 195: Use more portable memcmp() here.
SVN-Revision: 3813
Diffstat (limited to 'libarchive/archive_read_support_format_ar.c')
-rw-r--r-- | libarchive/archive_read_support_format_ar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_read_support_format_ar.c b/libarchive/archive_read_support_format_ar.c index ddb0e0a8..77235405 100644 --- a/libarchive/archive_read_support_format_ar.c +++ b/libarchive/archive_read_support_format_ar.c @@ -159,7 +159,7 @@ archive_read_format_ar_bid(struct archive_read *a) */ if ((h = __archive_read_ahead(a, 8, NULL)) == NULL) return (-1); - if (strncmp((const char*)h, "!<arch>\n", 8) == 0) { + if (memcmp(h, "!<arch>\n", 8) == 0) { return (64); } return (-1); |