From e058bca9728b2a07d54d7d9505d4516581eeb4ea Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 20 Jun 2013 12:27:57 +0000 Subject: memory corruption fix git-svn-id: http://svn.miranda-ng.org/main/trunk@5065 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/unzipfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/PluginUpdater') diff --git a/plugins/PluginUpdater/src/unzipfile.cpp b/plugins/PluginUpdater/src/unzipfile.cpp index c56a7a1ab3..019c3261a3 100644 --- a/plugins/PluginUpdater/src/unzipfile.cpp +++ b/plugins/PluginUpdater/src/unzipfile.cpp @@ -58,7 +58,7 @@ bool extractCurrentFile(unzFile uf, TCHAR *ptszDestPath, TCHAR *ptszBackPath) for (char *p = strchr(filename, '/'); p; p = strchr(p+1, '/')) *p = '\\'; - if (!db_get_b(NULL, MODNAME "Files", StrToLower(ptrA(_strdup(filename))), true)) + if (!db_get_b(NULL, MODNAME "Files", StrToLower(ptrA(mir_strdup(filename))), true)) return true; TCHAR tszDestFile[MAX_PATH], tszBackFile[MAX_PATH]; -- cgit v1.2.3