]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/strutl.cc
test framework: Correctly generate new paths in noopchroot
[apt.git] / apt-pkg / contrib / strutl.cc
index 05624f7fba8a6f4fea0fd2d19ee92f871d97756a..396cb7898c0e5dc26f31bbbbe030aa4c7cb90ca9 100644 (file)
@@ -331,7 +331,7 @@ string QuoteString(const string &Str, const char *Bad)
          *I == 0x25 || // percent '%' char
          *I <= 0x20 || *I >= 0x7F) // control chars
       {
-        ioprintf(Res,"%%%02x",(int)*I);
+        ioprintf(Res, "%%%02hhx", *I);
       }
       else
         Res << *I;