summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2001-09-01 22:47:59 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2001-09-01 22:47:59 +0000
commit5df6666a41e4a9c13f248c61d2f9380204a78775 (patch)
tree4cf34380f9577db9f1510ee26c330c4c5da37a0d
parent86f1f5942d676810afd52e907f1074eff5452f70 (diff)
downloadxine-lib-5df6666a41e4a9c13f248c61d2f9380204a78775.tar.gz
xine-lib-5df6666a41e4a9c13f248c61d2f9380204a78775.tar.bz2
More strlen/sizeof fixes by Hubert Matthews <hubert.matthews@unicornportal.com>
CVS patchset: 549 CVS date: 2001/09/01 22:47:59
-rw-r--r--src/input/input_dvd.c4
-rw-r--r--src/input/input_vcd.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/input/input_dvd.c b/src/input/input_dvd.c
index bc31976c7..c37cead51 100644
--- a/src/input/input_dvd.c
+++ b/src/input/input_dvd.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: input_dvd.c,v 1.19 2001/08/17 16:15:36 f1rmb Exp $
+ * $Id: input_dvd.c,v 1.20 2001/09/01 22:47:59 guenter Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -481,7 +481,7 @@ static mrl_t **dvd_plugin_get_dir (input_plugin_t *this_gen,
this->mrls[nFiles2]->type = (0 | mrl_dvd);
/* determine size */
- memset(&str, 0, strlen(str));
+ memset(&str, 0, sizeof(str));
sprintf (str, "/VIDEO_TS/%s", this->filelist[i]);
UDFFindFile(fd, str, &this->mrls[nFiles2]->size);
diff --git a/src/input/input_vcd.c b/src/input/input_vcd.c
index 657f013f7..e9d4a0106 100644
--- a/src/input/input_vcd.c
+++ b/src/input/input_vcd.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: input_vcd.c,v 1.19 2001/08/17 16:15:36 f1rmb Exp $
+ * $Id: input_vcd.c,v 1.20 2001/09/01 22:47:59 guenter Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -967,7 +967,7 @@ static mrl_t **vcd_plugin_get_dir (input_plugin_t *this_gen,
for (i=1; i<this->total_tracks; i++) { /* FIXME: check if track 0 contains valid data */
char mrl[1024];
- memset(&mrl, 0, strlen(mrl));
+ memset(&mrl, 0, sizeof (mrl));
sprintf(mrl, "vcd://%d",i);
if((i-1) >= this->mrls_allocated_entries