Fix indentation in unix command-line tool and also make sure to not use strcat for our logfile since it messes up the compressed image output.

This commit is contained in:
Pavel Krajcevski 2013-01-28 11:51:36 -05:00
parent cdbf72b6c0
commit f03d381092

View file

@ -201,7 +201,9 @@ int main(int argc, char **argv) {
} }
if(bSaveLog) { if(bSaveLog) {
statManager->ToFile(strcat(basename, ".log")); char logname[256];
sprintf(logname, "%s.log", basename);
statManager->ToFile(logname);
} }
Image cImg (*ci); Image cImg (*ci);