summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/modern_log.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-06 20:23:55 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-06 20:23:55 +0000
commit2799d3c1c54f5b4681b45b76cfdacb081312ae88 (patch)
tree7c3fcf6b8bb40fd3226e1c76ba0f70e53fa923a1 /plugins/Clist_modern/modern_log.cpp
parentfd2115f98aca6fa093498cf7a24216a12b05a885 (diff)
- crash fix in Clist Modern cache
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@800 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/modern_log.cpp')
-rw-r--r--plugins/Clist_modern/modern_log.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/Clist_modern/modern_log.cpp b/plugins/Clist_modern/modern_log.cpp
index 2f44f59d8e..09e7e1dd6d 100644
--- a/plugins/Clist_modern/modern_log.cpp
+++ b/plugins/Clist_modern/modern_log.cpp
@@ -1,8 +1,8 @@
#include "hdr/modern_commonheaders.h"
-#include <stdarg.h>
-#include <stdio.h>
-#include <string.h>
+#include < stdarg.h>
+#include < stdio.h>
+#include < string.h>
void Log(const char *file,int line,const char *fmt,...)
@@ -24,10 +24,10 @@ void Log(const char *file,int line,const char *fmt,...)
mir_vsnprintf(str,SIZEOF(str),fmt,vararg);
va_end(vararg);
{
- char * tmp=str;
- while(*tmp!='\0')
+ char * tmp = str;
+ while(*tmp != '\0')
{
- if (*tmp=='\n') *tmp=' ';
+ if (*tmp == '\n') *tmp = ' ';
tmp++;
}
}
@@ -35,7 +35,7 @@ void Log(const char *file,int line,const char *fmt,...)
#ifdef _FILELOG_
{
FILE *fp;
- fp=fopen(_FILELOG_,"at");
+ fp = fopen(_FILELOG_,"at");
fprintf(fp,buf);
fclose(fp);
}