]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/strutl.cc
add the possibility to disable only the progress reporting stuff as the
[apt.git] / apt-pkg / contrib / strutl.cc
index ace74cb37a6efc23c6798a3ebeda6ddb90790aa0..987f4c3a48414ec99cab139feccc8d99841b9425 100644 (file)
@@ -340,13 +340,13 @@ string SizeToStr(double Size)
    {
       if (ASize < 100 && I != 0)
       {
-         sprintf(S,"%'.1f%c",ASize,Ext[I]);
+         sprintf(S,"%'.1f %c",ASize,Ext[I]);
         break;
       }
       
       if (ASize < 10000)
       {
-         sprintf(S,"%'.0f%c",ASize,Ext[I]);
+         sprintf(S,"%'.0f %c",ASize,Ext[I]);
         break;
       }
       ASize /= 1000.0;
@@ -1161,7 +1161,7 @@ void strprintf(string &out,const char *format,...)
 char *safe_snprintf(char *Buffer,char *End,const char *Format,...)
 {
    va_list args;
-   unsigned long Did;
+   int Did;
 
    va_start(args,Format);