From 64f4cd53d5f6d8a61a89b5a6b13174c3dbb45dbd Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Sun, 31 May 2009 00:01:03 +0000 Subject: fixed invalid memory access git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@23606 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- plugins/dfxvideo/cfg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') 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); -- cgit v1.2.3