Explorar el Código

dpkg-split: fix a gcc warning

The refactoring made in commit 86cbf575b13d049504402f72d221fa1538c2e53b
was supposed to add the cast for the argument matching
the %jx specifier (and not %s).
Raphaël Hertzog hace 15 años
padre
commit
d9130f2def
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      dpkg-split/queue.c

+ 2 - 2
dpkg-split/queue.c

@@ -169,8 +169,8 @@ void do_auto(const char *const *argv) {
     char *p, *q;
 
     m_asprintf(&p, "%st.%lx", opt_depotdir, (long)getpid());
-    m_asprintf(&q, "%s%s.%jx.%x.%x", (intmax_t)opt_depotdir, refi->md5sum,
-               refi->maxpartlen, refi->thispartn, refi->maxpartn);
+    m_asprintf(&q, "%s%s.%jx.%x.%x", opt_depotdir, refi->md5sum,
+               (intmax_t)refi->maxpartlen, refi->thispartn, refi->maxpartn);
 
     fd_src = open(partfile, O_RDONLY);
     if (fd_src < 0)