diff options
author | al3x <al3x@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-06-11 12:47:48 +0000 |
---|---|---|
committer | al3x <al3x@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-06-11 12:47:48 +0000 |
commit | 17a8a234ffabf7357d79e0e794c7ebb101ae2659 (patch) | |
tree | ac2ccc5ded4b1315d7b3b10ba7ae9bf9bbf7b94a /TOOLS/asfinfo.c | |
parent | ee6d3b42d1689b71f027878cc41473de3e6455e1 (diff) | |
download | mpv-17a8a234ffabf7357d79e0e794c7ebb101ae2659.tar.bz2 mpv-17a8a234ffabf7357d79e0e794c7ebb101ae2659.tar.xz |
some possible buffer overflow places fixed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1097 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'TOOLS/asfinfo.c')
-rw-r--r-- | TOOLS/asfinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/TOOLS/asfinfo.c b/TOOLS/asfinfo.c index 3e26bfe18a..ab29aa865f 100644 --- a/TOOLS/asfinfo.c +++ b/TOOLS/asfinfo.c @@ -231,7 +231,7 @@ while(fread(&objh,sizeof(objh),1,f)>0){ #ifdef SAVE_STREAMS if(!streams[sh->streamno&0x7F]){ char name[256]; - sprintf(name,"stream%02X.dat",sh->streamno&0x7F); + snprintf(name,256,"stream%02X.dat",sh->streamno&0x7F); streams[sh->streamno&0x7F]=fopen(name,"wb"); } fwrite(p,len,1,streams[sh->streamno&0x7F]); |