patch-src_ydecode_c 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. $OpenBSD: patch-src_ydecode_c,v 1.1.1.1 2005/01/25 23:32:22 fgsch Exp $
  2. --- src/ydecode.c.orig Sat Jan 22 21:53:56 2005
  3. +++ src/ydecode.c Sat Jan 22 22:02:31 2005
  4. @@ -573,7 +573,7 @@ ydecode_single(YDECFILE *y)
  5. _("ybegin"), comma1(*y->header->size),
  6. _("actual"), comma2(decodedsize));
  7. errors++;
  8. - snprintf(errmsg, sizeof(errmsg), "size-%u", decodedsize);
  9. + snprintf(errmsg, sizeof(errmsg), "size-%zu", decodedsize);
  10. }
  11. if (y->footer->crc32 && (*y->footer->crc32 != crc32))
  12. {
  13. @@ -814,7 +814,7 @@ ydecode_multi(int *first_pos)
  14. "(%s=%s %s=%s)",
  15. _("yend"), comma1(*y->footer->size),
  16. _("actual"), comma2(decpart));
  17. - snprintf(errmsg, sizeof(errmsg), "psize-%u", decpart);
  18. + snprintf(errmsg, sizeof(errmsg), "psize-%zu", decpart);
  19. errors++;
  20. }
  21. if (y->footer->pcrc32 && (*y->footer->pcrc32 != pcrc32))
  22. @@ -847,7 +847,7 @@ ydecode_multi(int *first_pos)
  23. "(%s=%s %s=%s)",
  24. _("ybegin"), comma1(*y->header->size),
  25. _("actual"), comma2(decodedsize));
  26. - snprintf(errmsg, sizeof(errmsg), "size-%u", decodedsize);
  27. + snprintf(errmsg, sizeof(errmsg), "size-%zu", decodedsize);
  28. errors++;
  29. }
  30. if (y->footer->crc32 && (*y->footer->crc32 != crc32))