mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-29 12:42:16 -05:00
Fixed bad const-cast.
This commit is contained in:
parent
1d316710ed
commit
e400ed2855
@ -970,6 +970,7 @@ hexchat_printf (hexchat_plugin *ph, const char *format, ...)
|
|||||||
void
|
void
|
||||||
hexchat_command (hexchat_plugin *ph, const char *command)
|
hexchat_command (hexchat_plugin *ph, const char *command)
|
||||||
{
|
{
|
||||||
|
char *command_nonconst;
|
||||||
char *conv;
|
char *conv;
|
||||||
gssize len = -1;
|
gssize len = -1;
|
||||||
|
|
||||||
@ -980,9 +981,11 @@ hexchat_command (hexchat_plugin *ph, const char *command)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* scripts/plugins continue to send non-UTF8... *sigh* */
|
/* scripts/plugins continue to send non-UTF8... *sigh* */
|
||||||
conv = text_validate ((char **)&command, &len);
|
command_nonconst = g_strdup (command);
|
||||||
handle_command (ph->context, (char *)command, FALSE);
|
conv = text_validate (&command_nonconst, &len);
|
||||||
|
handle_command (ph->context, command_nonconst, FALSE);
|
||||||
g_free (conv);
|
g_free (conv);
|
||||||
|
g_free (command_nonconst);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user