]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/deblistparser.cc
Introduce tolower_ascii_unsafe() and use it for hashing
[apt.git] / apt-pkg / deb / deblistparser.cc
index 43fc4aa3a949e3f30edafd954ffc9cda87562270..549e75952885ad0af823ed791ecf261a61a2f9e5 100644 (file)
@@ -369,7 +369,7 @@ unsigned short debListParser::VersionHash()
       {
         if (isspace_ascii(*Start) != 0)
            continue;
-        *J++ = tolower_ascii(*Start);
+        *J++ = tolower_ascii_unsafe(*Start);
 
         /* Normalize <= to < and >= to >. This is the wrong way around, but
          * more efficient that the right way. And since we're only hashing