[DVDnav-discuss] [PATCH] Use snprintf() rather than strcpy+3×strncat

Diego 'Flameeyes' Pettenò flameeyes at gmail.com
Wed Apr 18 10:43:04 CEST 2007


The attached patch replaces a strncpy call and three strncat with a
single snprintf() call.

It's important because the boundary for strncat() is used in the wrong
way (the way strlcat() should be used).

The patch was added to xine-lib by Matthias Hopf <mat at mshopf.de>.

-- 
Diego "Flameeyes" Pettenò
http://farragut.flameeyes.is-a-geek.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libdvdnav-mapfilename.patch
Type: text/x-patch
Size: 558 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/dvdnav-discuss/attachments/20070418/3e8957ec/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/dvdnav-discuss/attachments/20070418/3e8957ec/attachment.pgp>


More information about the DVDnav-discuss mailing list