diff options
Diffstat (limited to 'src/plugins/plugin.c')
-rw-r--r-- | src/plugins/plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c index 449a32923..d841d1c18 100644 --- a/src/plugins/plugin.c +++ b/src/plugins/plugin.c @@ -459,7 +459,7 @@ plugin_auto_load () } /* auto-load plugins in WeeChat global lib dir */ - dir_name = (char *)malloc (strlen (WEECHAT_LIBDIR) + 16); + dir_name = (char *)malloc ((strlen (WEECHAT_LIBDIR) + 16) * sizeof (char)); if (dir_name) { snprintf (dir_name, strlen (WEECHAT_LIBDIR) + 16, |