summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-05-31 00:01:03 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-05-31 00:01:03 +0000
commit64f4cd53d5f6d8a61a89b5a6b13174c3dbb45dbd (patch)
tree142ead565b756f2ce2feed0252cbc68a615de93b /plugins
parent502b3aecd646c124c99f82be813030a694782fcf (diff)
downloadpcsxr-64f4cd53d5f6d8a61a89b5a6b13174c3dbb45dbd.tar.gz
fixed invalid memory access
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@23606 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins')
-rw-r--r--plugins/dfxvideo/cfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/dfxvideo/cfg.c b/plugins/dfxvideo/cfg.c
index c341ef05..f98e1256 100644
--- a/plugins/dfxvideo/cfg.c
+++ b/plugins/dfxvideo/cfg.c
@@ -108,8 +108,8 @@ void ReadConfigFile()
in = fopen(t,"rb");
if (!in) return;
- pB=(char *)malloc(size);
- memset(pB,0,size);
+ pB=(char *)malloc(size + 1);
+ memset(pB,0,size + 1);
len = fread(pB, 1, size, in);
fclose(in);