diff options
author | Tux3 / Mlkj / !Lev.uXFMLA <tux3@users.noreply.github.com> | 2014-06-18 21:48:36 +0200 |
---|---|---|
committer | Tux3 / Mlkj / !Lev.uXFMLA <tux3@users.noreply.github.com> | 2014-06-18 21:48:36 +0200 |
commit | 13794e00af71fd7ee32c9a9778e058f746f00e76 (patch) | |
tree | 53cfa457e37dac39674f93ef6b5da50eb860f1dd | |
parent | 888ebea619e3068fce10508c9187b7d2c81c2c17 (diff) |
Comment out extra argument to sprintf
-rw-r--r-- | toxcore/logger.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
91 | int logger_init(const char *file_name, LoggerLevel level) | 91 | int logger_init(const char *file_name, LoggerLevel level) |
92 | { | 92 | { |
93 | char *final_l = calloc(sizeof(char), strlen(file_name) + 32); | 93 | char *final_l = calloc(sizeof(char), strlen(file_name) + 32); |
94 | sprintf(final_l, "%s"/*.%u"*/, file_name, logger_get_pid()); | 94 | sprintf(final_l, "%s"/*.%u"*/, file_name/*, logger_get_pid()*/); |
95 | 95 | ||
96 | if ( logger.log_file ) { | 96 | if ( logger.log_file ) { |
97 | fprintf(stderr, "Error opening logger name: %s with level %d: file already opened!\n", final_l, level); | 97 | fprintf(stderr, "Error opening logger name: %s with level %d: file already opened!\n", final_l, level); |