1
mirror of https://github.com/mpv-player/mpv synced 2024-11-03 03:19:24 +01:00

possible buffer overflow place fixed

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1096 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
al3x 2001-06-11 12:41:53 +00:00
parent 1fe0cb7e25
commit ee6d3b42d1

View File

@ -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);