diff options
author | Gaël PORTAY <gael.portay@gmail.com> | 2015-05-02 23:28:28 +0200 |
---|---|---|
committer | Gaël PORTAY <gael.portay@gmail.com> | 2015-05-05 20:39:14 +0200 |
commit | 05b36b484e93557928d4ae90a7eea5a57764c372 (patch) | |
tree | 99c9a80cd1fbba4a562a6a6c82411abc1aea0750 /svr-chansession.c | |
parent | be3016b8d583c25f201b04b41e7deacf79c59579 (diff) |
Turn ChanSess's cmd attribute into char *
Diffstat (limited to 'svr-chansession.c')
-rw-r--r-- | svr-chansession.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svr-chansession.c b/svr-chansession.c index c496ff9..a630112 100644 --- a/svr-chansession.c +++ b/svr-chansession.c @@ -649,7 +649,7 @@ static int sessioncommand(struct Channel *channel, struct ChanSess *chansess, if (iscmd) { /* "exec" */ if (chansess->cmd == NULL) { - chansess->cmd = buf_getstring(ses.payload, &cmdlen); + chansess->cmd = (char *) buf_getstring(ses.payload, &cmdlen); if (cmdlen > MAX_CMD_LEN) { m_free(chansess->cmd); |