summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:52:22 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:52:22 +0000
commita4edf53b885ce8559115eaf2c4836ec1f76b07ec (patch)
treee7b8969b82c8a6ab4c3dffc708c2236101180e80 /apt-pkg
parent21ae3cae55e3537db56ae7a77748cacb37b99db6 (diff)
Fixed quoting bug
Author: jgg Date: 1998-12-31 05:45:26 GMT Fixed quoting bug
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/strutl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/contrib/strutl.cc b/apt-pkg/contrib/strutl.cc
index 499b72a5e..a05359f82 100644
--- a/apt-pkg/contrib/strutl.cc
+++ b/apt-pkg/contrib/strutl.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: strutl.cc,v 1.15 1998/12/04 21:16:50 jgg Exp $
+// $Id: strutl.cc,v 1.16 1998/12/31 05:45:26 jgg Exp $
/* ######################################################################
String Util - Some usefull string functions.
@@ -189,7 +189,7 @@ string QuoteString(string Str,const char *Bad)
*I <= 0x20 || *I >= 0x7F)
{
char Buf[10];
- sprintf(Buf,"%%%02x",(int)*I);
+ sprintf(Buf,"%%%02x",(unsigned int)((unsigned char)*I));
Res += Buf;
}
else