fishlim: Allocate a right memory size
This commit is contained in:
parent
a1f538ac67
commit
82d6a53eb6
@ -198,7 +198,7 @@ static int handle_incoming(char *word[], char *word_eol[], hexchat_event_attrs *
|
|||||||
if (!decrypted) goto decrypt_error;
|
if (!decrypted) goto decrypt_error;
|
||||||
|
|
||||||
/* Build unecrypted message */
|
/* Build unecrypted message */
|
||||||
message = g_string_sized_new (100); /* TODO: more accurate estimation of size */
|
message = g_string_sized_new (strlen(word_eol[1])); /* Just put at least the size of original command */
|
||||||
g_string_append (message, "RECV");
|
g_string_append (message, "RECV");
|
||||||
|
|
||||||
if (attrs->server_time_utc)
|
if (attrs->server_time_utc)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user