1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 13:56:37 +02:00

Use of sizeof(char) in all malloc/realloc for strings

This commit is contained in:
Sebastien Helleu
2008-02-02 21:12:16 +01:00
parent d7cc27f713
commit 28e811c09c
38 changed files with 99 additions and 239 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ weechat_lua_exec (struct t_plugin_script *script,
ret_value = strdup ((char *) lua_tostring (lua_current_interpreter, -1));
else if (ret_type == WEECHAT_SCRIPT_EXEC_INT)
{
ret_i = (int *)malloc (sizeof(int));
ret_i = (int *)malloc (sizeof (int));
if (ret_i)
*ret_i = lua_tonumber (lua_current_interpreter, -1);
ret_value = ret_i;