Update of /cvsroot/xine/xine-lib/src/libsputext
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv13083/src/libsputext
Modified Files:
demux_sputext.c
Log Message:
Fix wrong length specification for strncat() calls.
Consolidated multiple strncat() calls to snprintf().
Index: demux_sputext.c
===================================================================
RCS file: /cvsroot/xine/xine-lib/src/libsputext/demux_sputext.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- demux_sputext.c 10 Jul 2006 22:08:30 -0000 1.49
+++ demux_sputext.c 8 Dec 2006 16:26:10 -0000 1.50
@@ -915,7 +915,8 @@
return NULL;
trail_space(directive);
strncat(line2, directive,
- (LINE_LEN > 511) ? LINE_LEN : 511);
+ ((LINE_LEN > 511) ? LINE_LEN-1 : 511)
+ - strlen(line2));
break;
}
default:
-------------------------------------------------------------------------
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