File deltarpm.norpms.diff of Package deltarpm

--- ./fragiso.c.orig	2008-05-09 15:41:00.000000000 +0000
+++ ./fragiso.c	2008-05-09 15:41:36.000000000 +0000
@@ -921,7 +921,7 @@ assemble(char *fiso, char *dir, char *is
 	    }
 	}
       o = pays[i].o;
-      sprintf(dbuf + dl, "%010llx:%08x", pays[i].o, pays[i].l);
+      sprintf(dbuf + dl, "%010llx:%08x", (unsigned long long)pays[i].o, pays[i].l);
       if ((rfp = fopen64(dbuf, "r")) == 0)
 	{
 	  perror(dbuf);
--- ./makedeltaiso.c.orig	2008-05-09 15:40:27.000000000 +0000
+++ ./makedeltaiso.c	2008-05-09 15:39:39.000000000 +0000
@@ -137,7 +137,7 @@ recode_instr(struct instr *instr, int in
   nb1 = nb2 = 0;
   j = 0;  
   lastoff = 0;
-  left = pay ? pay[0].lx : 0;
+  left = pay && payn ? pay[0].lx : 0;
   payp = 0;
   for (i = 0; i < instrlen; i++)
     {
--- ./makedeltarpm.c.orig	2008-05-09 16:08:47.000000000 +0000
+++ ./makedeltarpm.c	2008-05-09 16:08:55.000000000 +0000
@@ -813,7 +813,6 @@ main(int argc, char **argv)
     fprintf(vfp, "reading old rpm...\n");
   if (rpmonly)
     {
-      write(3, oldcpio, oldcpiolen);
       while ((l = bfd->read(bfd, buf, sizeof(buf))) > 0)
 	addtocpio(&oldcpio, &oldcpiolen, (unsigned char *)buf, l);
     }