mirror of
https://github.com/weechat/weechat.git
synced 2026-07-09 19:23:13 +02:00
Removed sizeof(char) and useless type casts from void* to another pointer type (patch from Leonid Evdokimov)
This commit is contained in:
@@ -232,7 +232,7 @@ irc_completion_channel_nicks_hosts_cb (void *data, char *completion,
|
||||
{
|
||||
length = strlen (ptr_nick->name) + 1 +
|
||||
strlen (ptr_nick->host) + 1;
|
||||
buf = (char *)malloc (length * sizeof (char));
|
||||
buf = malloc (length);
|
||||
if (buf)
|
||||
{
|
||||
snprintf (buf, length, "%s!%s",
|
||||
|
||||
Reference in New Issue
Block a user