diff options
author | George Hazan <george.hazan@gmail.com> | 2013-08-11 14:39:15 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-08-11 14:39:15 +0000 |
commit | 16f34087d04db189c0d204540c873ebc910c0fa2 (patch) | |
tree | d68c9a197903648d7fa53be6331929d67826db0e /plugins/TabSRMM/src/srmm.cpp | |
parent | d6738c3c5796bd7f0def65eb7b3236bbf6d8373e (diff) |
trap #3 for a crash
git-svn-id: http://svn.miranda-ng.org/main/trunk@5653 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/srmm.cpp')
-rw-r--r-- | plugins/TabSRMM/src/srmm.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/srmm.cpp b/plugins/TabSRMM/src/srmm.cpp index a85912ad55..2770a3ec73 100644 --- a/plugins/TabSRMM/src/srmm.cpp +++ b/plugins/TabSRMM/src/srmm.cpp @@ -166,11 +166,9 @@ int _DebugTraceA(const char *fmt, ...) #else
{
char szLogFileName[MAX_PATH], szDataPath[MAX_PATH];
- FILE *f;
-
CallService(MS_DB_GETPROFILEPATH, MAX_PATH, (LPARAM)szDataPath);
- mir_snprintf(szLogFileName, MAX_PATH, "%s\\%s", szDataPath, "tabsrmm_debug.log");
- f = fopen(szLogFileName, "a+");
+ mir_snprintf(szLogFileName, MAX_PATH, "%s\\tabsrmm_debug.log", szDataPath);
+ FILE *f = fopen(szLogFileName, "a+");
if (f) {
fputs(debug, f);
fputs("\n", f);
|