diff options
author | 2001-06-11 12:41:53 +0000 | |
---|---|---|
committer | 2001-06-11 12:41:53 +0000 | |
commit | ee6d3b42d1689b71f027878cc41473de3e6455e1 (patch) | |
tree | 44754bb340d27d41ed63303a889fbd33b5fa705f /libvo/vo_md5.c | |
parent | 1fe0cb7e250c5a31bf49a3062a33b8a78e4d25b4 (diff) |
possible buffer overflow place fixed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1096 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_md5.c')
-rw-r--r-- | libvo/vo_md5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/vo_md5.c b/libvo/vo_md5.c index 6defb0f426..9938b551f0 100644 --- a/libvo/vo_md5.c +++ b/libvo/vo_md5.c @@ -57,7 +57,7 @@ static void flip_page (void) 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); |