Fixed one last bug in the request logger.
[doldaconnect.git] / daemon / reqstat.c
index 2f51c6d..838f611 100644 (file)
@@ -56,7 +56,7 @@ void filelog(char *format, ...)
     t = ctime(&now);
     if((p = strchr(t, '\n')) != NULL)
        *p = 0;
-    fprintf(out, "%s: %s\n", p, b);
+    fprintf(out, "%s: %s\n", t, b);
     free(b);
     fclose(out);
 }