diff options
Diffstat (limited to 'src/plugins/logger/logger.c')
-rw-r--r-- | src/plugins/logger/logger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/logger/logger.c b/src/plugins/logger/logger.c index bfcfd858a..fd92047da 100644 --- a/src/plugins/logger/logger.c +++ b/src/plugins/logger/logger.c @@ -203,7 +203,7 @@ logger_get_filename (struct t_gui_buffer *buffer) if (name2) length += strlen (name2); length += 16; - res = (char *)malloc (length); + res = (char *)malloc (length * sizeof (char)); if (res) { strcpy (res, log_path2); |