Quellcode durchsuchen

More %z format fixes

Wichert Akkerman vor 25 Jahren
Ursprung
Commit
50e07e882b
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      dpkg-deb/extract.c

+ 2 - 2
dpkg-deb/extract.c

@@ -191,9 +191,9 @@ void extracthalf(const char *debar, const char *directory,
 
     if (admininfo >= 2)
       if (printf(_(" old debian package, version %s.\n"
-                 " size %ld bytes: control archive= %zd, main archive= %li.\n"),
+                 " size %ld bytes: control archive= %ld, main archive= %zi.\n"),
                  versionbuf, (long)stab.st_size, ctrllennum,
-                 (stab.st_size - ctrllennum - strlen(ctrllenbuf) - l)) == EOF ||
+                 (long) (stab.st_size - ctrllennum - strlen(ctrllenbuf) - l)) == EOF ||
           fflush(stdout)) werr("stdout");
     
     ctrlarea= malloc(ctrllennum); if (!ctrlarea) ohshite("malloc ctrlarea failed");