Re: [Dvdauthor-developer] Errors in UDF format while sending ISO to DVD replication
Ben Hutchings <ben-/[email protected]> Wed, 12 Aug 2015 17:42:58 +0200
| Newsgroups | gmane.comp.multimedia.dvdauthor.user |
|---|---|
| Message-ID | <[email protected]> |
--===============8777166778078866268==
Content-Type: multipart/signed; micalg="pgp-sha512";
protocol="application/pgp-signature"; boundary="=-Qv1DuZH90hhRKh7/gog4"
--=-Qv1DuZH90hhRKh7/gog4
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Wed, 2015-08-12 at 14:25 +1200, Lawrence D'Oliveiro wrote:
[...]
> +static void nfpad(size_t len, FILE *h)
> + /* writes len bytes of padding to h, or turns into a noop if h is=20
> null. */
> + {
> + static unsigned char buf[2048];
> + static size_t himark =3D 0;
> + if (h !=3D NULL)
> + {
> + while (len !=3D 0)
> + {
> + size_t uselen =3D sizeof buf;
> + if (uselen > len)
> + {
> + uselen =3D len;
> + } /*if*/
> + if (uselen > himark)
> + {
> + memset(buf + himark, 0, uselen - himark);
> + himark =3D uselen;
> + } /*if*/
> + nfwrite(buf, uselen, h);
> + len -=3D uselen;
> + } /*while*/
> + } /*if*/
> + } /*nfpad*/
[...]
static variables are zero-initialised, so the memset() and himark varia
ble are redundant.
Ben.
--=20
Ben Hutchings
Teamwork is essential - it allows you to blame someone else.
--=-Qv1DuZH90hhRKh7/gog4
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIVAwUAVctpgue/yOyVhhEJAQr48Q/+KZ84BqGENuVdOYaGevFozFEaXrhsONuV
nLC2v6fzwIJP6o22odd0nXJ5GH33+7jUOpRXgwf9tzeuOCt1H1QeTXYr7sJb9Wfs
qSckPF+oT6hBYiECO6ehPnrYlZoVNTxIo85tEN4uKtTM4Jb3S36sI3jWvliIJPMe
21ifC3XLc+qqDPkuSz6oeg40vRs657sWNlOl3xPB2p51Gy9aby0HbGgH7rPdi0oP
HqnUhllqBgfbZtgvIJUhpKnNrW6YSoO2HVqoqpltRskR5Zo/QPgHPavVyuhfk6D+
XeBWiAox0pPmMCGJj89Z7LhfqT3fjO3vfHB/B9AEroN1LdBnjoDUF9j3SIz+e+xb
SiW+hNDyAzBS8X9laNM4Q9OSJ1L2vqXuMciGBd53/mFGfhbhWJ8tLGYs155pPT2p
LzyjHhScLabJTTQjhpF20KnbqfhWMkwNBgfQY8X2PKd1Hk+7Yy9vcgVKtZucNYQX
/pp/awJHkKzm++aHgRiH4KEmADFEIiSppb09GuHlJvz36mpXxIB2g2jw6g76aBqb
ozet/6qhbF16mZFVLJTaEJQAxSkuteF8nj24Qm0YFZ6wRkpWj+I35XxIz70ZsC5w
gK73Rq9k7wGvN4pwosR971h/8PR3odbj2Yp18Id3w5U4gDSP+tpSSFhFSp0A2fvo
ezqTAZLYv2E=
=gpig
-----END PGP SIGNATURE-----
--=-Qv1DuZH90hhRKh7/gog4--
--===============8777166778078866268==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
--===============8777166778078866268==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Dvdauthor-users mailing list
Dvdauthor-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/dvdauthor-users
--===============8777166778078866268==--