diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-05-31 00:01:03 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-05-31 00:01:03 +0000 |
| commit | 64f4cd53d5f6d8a61a89b5a6b13174c3dbb45dbd (patch) | |
| tree | 142ead565b756f2ce2feed0252cbc68a615de93b /plugins | |
| parent | 502b3aecd646c124c99f82be813030a694782fcf (diff) | |
| download | pcsxr-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.c | 4 |
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); |
