Update of /cvsroot/xine/xine-lib/src/input/vcd/libcdio
In directory
sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv13083/src/input/vcd/libcdio
Modified Files:
iso9660_fs.c
Log Message:
Fix wrong length specification for strncat() calls.
Consolidated multiple strncat() calls to snprintf().
Index: iso9660_fs.c
===================================================================
RCS file: /cvsroot/xine/xine-lib/src/input/vcd/libcdio/iso9660_fs.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- iso9660_fs.c 28 Sep 2006 08:19:14 -0000 1.6
+++ iso9660_fs.c 8 Dec 2006 16:26:10 -0000 1.7
@@ -1200,9 +1200,7 @@
char _fullname[4096] = { 0, };
char *filename = (char *) statbuf->filename;
- snprintf (_fullname, sizeof (_fullname), "%s%s", pathname, filename);
-
- strncat (_fullname, "/", sizeof (_fullname));
+ snprintf (_fullname, sizeof (_fullname), "%s%s/", pathname, filename);
if (statbuf->type == _STAT_DIR
&& strcmp ((char *) statbuf->filename, ".")
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Xine-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-cvslog