From 13794e00af71fd7ee32c9a9778e058f746f00e76 Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Wed, 18 Jun 2014 21:48:36 +0200 Subject: Comment out extra argument to sprintf --- toxcore/logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toxcore/logger.c b/toxcore/logger.c index f83c82df..48a2f303 100644 --- a/toxcore/logger.c +++ b/toxcore/logger.c @@ -91,7 +91,7 @@ const char *logger_stringify_level(LoggerLevel level) int logger_init(const char *file_name, LoggerLevel level) { char *final_l = calloc(sizeof(char), strlen(file_name) + 32); - sprintf(final_l, "%s"/*.%u"*/, file_name, logger_get_pid()); + sprintf(final_l, "%s"/*.%u"*/, file_name/*, logger_get_pid()*/); if ( logger.log_file ) { fprintf(stderr, "Error opening logger name: %s with level %d: file already opened!\n", final_l, level); -- cgit v1.2.3