From: Michihiro NAKAJIMA Date: Thu, 16 Dec 2010 12:36:18 +0000 (-0500) Subject: Fix a wrong scope to hex. X-Git-Tag: v3.0.0a~820 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01f5b4b9ac88b4ba69b4f36685d5cbc534edcc2e;p=thirdparty%2Flibarchive.git Fix a wrong scope to hex. SVN-Revision: 2826 --- diff --git a/libarchive/archive_write_set_format_iso9660.c b/libarchive/archive_write_set_format_iso9660.c index abdbd75c5..e88547930 100644 --- a/libarchive/archive_write_set_format_iso9660.c +++ b/libarchive/archive_write_set_format_iso9660.c @@ -1292,7 +1292,7 @@ iso9660_options(struct archive_write *a, const char *key, const char *value) if (p[0] == '0' && (p[1] == 'x' || p[1] == 'X')) p += 2; while (*p) { - if (*p >= 'A' && *p <= 'f') + if (*p >= 'A' && *p <= 'F') seg = (seg << 4) + *p - 'A' + 0x0a; else if (*p >= 'a' && *p <= 'f') seg = (seg << 4) + *p - 'a' + 0x0a;