changeset 1095:c1daff266657

possible buffer overflow place fixed
author al3x
date Mon, 11 Jun 2001 12:41:53 +0000
parents 7a6be90408ea
children bf973bffe240
files libvo/vo_md5.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_md5.c	Mon Jun 11 12:34:46 2001 +0000
+++ b/libvo/vo_md5.c	Mon Jun 11 12:41:53 2001 +0000
@@ -57,7 +57,7 @@
 
     video_out_pgm.flip_page();
 
-    sprintf (buf2, "md5sum %s", vo_pgm_filename);
+    snprintf (buf2, 100, "md5sum %s", vo_pgm_filename);
     f = popen (buf2, "r");
     i = fread (buf2, 1, sizeof(buf2), f);
     pclose (f);