diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-07-30 11:04:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-30 11:04:01 +0200 |
commit | 6eda6bd14a2f8f0d261a6eda8c68a2e8f91a5f0d (patch) | |
tree | 7d637670e130be923d87a7dd65cc8821f83c9187 | |
parent | 259221608485bbe1fc4e6d5efe28aa82c0436c58 (diff) | |
parent | 5e61bc08dd677e6d69158d3fd2eaccabc104771f (diff) | |
download | profani-tty-6eda6bd14a2f8f0d261a6eda8c68a2e8f91a5f0d.tar.gz |
Merge pull request #1162 from paulfariello/hotfix/command-exec
Fix command form submit
-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) { |