summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--chansession.h2
-rw-r--r--svr-chansession.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/chansession.h b/chansession.h
index 66f5504..6eb8c76 100644
--- a/chansession.h
+++ b/chansession.h
@@ -39,7 +39,7 @@ struct exitinfo {
struct ChanSess {
- unsigned char * cmd; /* command to exec */
+ char * cmd; /* command to exec */
pid_t pid; /* child process pid */
/* pty details */
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);