]> jfr.im git - solanum.git/blobdiff - modules/m_alias.c
cppcheck: fix various warnings/errors
[solanum.git] / modules / m_alias.c
index ebff11e257b24caf51b71fc759eaf2a193b009ca..f59ca2a6229e439ba39b9e9d07615226fceb4e53 100644 (file)
@@ -61,7 +61,7 @@ create_aliases(void)
        RB_DICTIONARY_FOREACH(alias, &iter, alias_dict)
        {
                struct Message *message = rb_malloc(sizeof(*message) + strlen(alias->name) + 1);
-               char *cmd = (void*)message + sizeof(*message);
+               char *cmd = (char*)message + sizeof(*message);
 
                /* copy the alias name as it will be freed early on a rehash */
                strcpy(cmd, alias->name);