diff options
-rw-r--r-- | src/xmpp/iq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c index 4ffa55d8..4b75436a 100644 --- a/src/xmpp/iq.c +++ b/src/xmpp/iq.c @@ -1235,7 +1235,7 @@ _command_exec_response_handler(xmpp_stanza_t *const stanza, void *const userdata } else { data->sessionid = strdup(sessionid); } - data->command = command; + data->command = strdup(command); ProfConfWin *confwin = (ProfConfWin*)wins_new_config(from, form, iq_submit_command_config, iq_cancel_command_config, data); confwin_handle_configuration(confwin, form); } else if (g_strcmp0(status, "canceled") == 0) { |