Update of /cvsroot/xine/xine-lib/src/input/vcd/libvcd
In directory 
sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv13083/src/input/vcd/libvcd

Modified Files:
        vcd.c 
Log Message:
Fix wrong length specification for strncat() calls.
Consolidated multiple strncat() calls to snprintf().


Index: vcd.c
===================================================================
RCS file: /cvsroot/xine/xine-lib/src/input/vcd/libvcd/vcd.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- vcd.c       1 Jan 2005 02:43:59 -0000       1.3
+++ vcd.c       8 Dec 2006 16:26:10 -0000       1.4
@@ -1664,7 +1664,7 @@
                       track->info->ahdr[i].bitrate / 1024,
                       _mode_str[track->info->ahdr[i].mode]);
                     
-            strncat (buf2, buf, sizeof(buf));
+            strncat (buf2, buf, sizeof(buf2) - strlen(buf2) - 1);
           }      
 
       vcd_info ("writing track %d, %s, %s, %s...", track_idx + 2,


-------------------------------------------------------------------------
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

Reply via email to