democlient: log input

This commit is contained in:
Daniel Marjamäki 2013-07-13 18:15:20 +02:00
parent dcb38ff637
commit ab2d2a7484
1 changed files with 6 additions and 0 deletions

View File

@ -81,6 +81,12 @@ int main()
char code[4096] = {0};
unencode(data, code);
FILE *logfile = fopen("democlient.log", "at");
if (logfile != NULL) {
fprintf(logfile, "===========================================================\n%s\n", code);
fclose(logfile);
}
printf("Content-type: text/plain\n\n");
CppcheckExecutor cppcheckExecutor;