diff options
author | Matthias Hopf <mat@mshopf.de> | 2006-12-08 16:26:10 +0000 |
---|---|---|
committer | Matthias Hopf <mat@mshopf.de> | 2006-12-08 16:26:10 +0000 |
commit | 4169f9efdaeda8a60b5cfd464bd39b80a9dd2032 (patch) | |
tree | fc007ba74c24176b7772442ddf9433242df16ad7 /src/input/vcd/libvcd | |
parent | 3321b7ae77daede398739a832e75c5dfba7de22e (diff) | |
download | xine-lib-4169f9efdaeda8a60b5cfd464bd39b80a9dd2032.tar.gz xine-lib-4169f9efdaeda8a60b5cfd464bd39b80a9dd2032.tar.bz2 |
Fix wrong length specification for strncat() calls.
Consolidated multiple strncat() calls to snprintf().
CVS patchset: 8407
CVS date: 2006/12/08 16:26:10
Diffstat (limited to 'src/input/vcd/libvcd')
-rw-r--r-- | src/input/vcd/libvcd/vcd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input/vcd/libvcd/vcd.c b/src/input/vcd/libvcd/vcd.c index e9618a7d7..0772149ec 100644 --- a/src/input/vcd/libvcd/vcd.c +++ b/src/input/vcd/libvcd/vcd.c @@ -1,5 +1,5 @@ /* - $Id: vcd.c,v 1.3 2005/01/01 02:43:59 rockyb Exp $ + $Id: vcd.c,v 1.4 2006/12/08 16:26:10 mshopf Exp $ Copyright (C) 2000, 2004 Herbert Valerio Riedel <hvr@gnu.org> @@ -49,7 +49,7 @@ #include "util.h" #include "vcd.h" -static const char _rcsid[] = "$Id: vcd.c,v 1.3 2005/01/01 02:43:59 rockyb Exp $"; +static const char _rcsid[] = "$Id: vcd.c,v 1.4 2006/12/08 16:26:10 mshopf Exp $"; static const char zero[CDIO_CD_FRAMESIZE_RAW] = { 0, }; @@ -1664,7 +1664,7 @@ _write_sequence (VcdObj *obj, int track_idx) 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, |