summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/plugins/plugin.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2fa7fc2..cd2fa23 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+15-03-11 Cyrille Bagard <nocbos@gmail.com>
+
+ * src/plugins/plugin.c:
+ Fix an overflow when logging messages for plugins.
+
15-03-10 Cyrille Bagard <nocbos@gmail.com>
* src/dialogs/gotox.c:
diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c
index 0ca19e4..fb970b3 100644
--- a/src/plugins/plugin.c
+++ b/src/plugins/plugin.c
@@ -349,7 +349,7 @@ void g_plugin_module_log_simple_message(const GPluginModule *plugin, LogMessageT
size_t len; /* Taille tampon disponible */
char *buffer; /* Tampon du msg reconstitué */
- len = 3 +1 + strlen(plugin->interface->name) + 3 + 2 + strlen(msg) + 1;
+ len = 4 + strlen(plugin->interface->name) + 6 + strlen(msg) + 1;
buffer = calloc(len, sizeof(char));
strcpy(buffer, "<i>[");