diff options
author | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-02-26 12:16:53 +0900 |
---|---|---|
committer | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-02-26 16:01:31 +0900 |
commit | f0039a40ca4259ec75458e320d1b55309791f30e (patch) | |
tree | 60d5bca71c3e7189ef2df722e23493af22c60870 /libarchive/archive_write_set_format_iso9660.c | |
parent | b2088cf0ab3ae23c855392309e54d5666633b3f1 (diff) | |
download | libarchive-f0039a40ca4259ec75458e320d1b55309791f30e.tar.gz |
Fix a comparison of file names in ISO images.
Diffstat (limited to 'libarchive/archive_write_set_format_iso9660.c')
-rw-r--r-- | libarchive/archive_write_set_format_iso9660.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libarchive/archive_write_set_format_iso9660.c b/libarchive/archive_write_set_format_iso9660.c index f4a3b98e..3277803e 100644 --- a/libarchive/archive_write_set_format_iso9660.c +++ b/libarchive/archive_write_set_format_iso9660.c @@ -6381,7 +6381,7 @@ isoent_cmp_iso9660_identifier(const struct isoent *p1, const struct isoent *p2) if (0x20 != *s2++) return (0x20 - *(const unsigned char *)(s2 - 1)); - } else if (p1->ext_len < p2->ext_len) { + } else if (p1->ext_len > p2->ext_len) { s1 += l; l = p1->ext_len - p2->ext_len; while (l--) @@ -6469,7 +6469,7 @@ isoent_cmp_joliet_identifier(const struct isoent *p1, const struct isoent *p2) while (l--) if (0 != *s2++) return (- *(const unsigned char *)(s2 - 1)); - } else if (p1->ext_len < p2->ext_len) { + } else if (p1->ext_len > p2->ext_len) { s1 += l; l = p1->ext_len - p2->ext_len; while (l--) |