chg: \r didn't work well with printandlogex

chg: spaces
chg: cleaning
This commit is contained in:
iceman1001 2018-04-27 12:15:26 +02:00
commit 271cb3e1cc
8 changed files with 18 additions and 19 deletions

View file

@ -128,7 +128,7 @@ void PrintAndLog(char *fmt, ...) {
logfile = fopen(logfilename, "a");
if (!logfile) {
fprintf(stderr, "Can't open logfile, logging disabled!\n");
logging=0;
logging = 0;
}
}
@ -169,7 +169,7 @@ void PrintAndLog(char *fmt, ...) {
if (logging && logfile) {
vfprintf(logfile, fmt, argptr2);
fprintf(logfile,"\n");
fprintf(logfile, "\n");
fflush(logfile);
}
va_end(argptr2);