# HG changeset patch # User Gaƫl PORTAY # Date 1430602333 -7200 # Node ID 367d3800555bbc921e3425beb77fe6adcf6ca2cf # Parent 5eb00b6b90402bd7b67939c630c6ec09ecbaf35c Turn signame local variable into char * diff -r 5eb00b6b9040 -r 367d3800555b svr-chansession.c --- a/svr-chansession.c Sat May 02 23:28:28 2015 +0200 +++ b/svr-chansession.c Sat May 02 23:32:13 2015 +0200 @@ -221,7 +221,7 @@ buf_putint(ses.writepayload, channel->remotechan); buf_putstring(ses.writepayload, (const unsigned char *) "exit-signal", 11); buf_putbyte(ses.writepayload, 0); /* boolean FALSE */ - buf_putstring(ses.writepayload, signame, strlen(signame)); + buf_putstring(ses.writepayload, (const unsigned char *) signame, strlen(signame)); buf_putbyte(ses.writepayload, chansess->exit.exitcore); buf_putstring(ses.writepayload, (const unsigned char *) "", 0); /* error msg */ buf_putstring(ses.writepayload, (const unsigned char *) "", 0); /* lang */ @@ -406,7 +406,7 @@ static int sessionsignal(struct ChanSess *chansess) { int sig = 0; - unsigned char* signame = NULL; + char* signame = NULL; int i; if (chansess->pid == 0) { @@ -414,7 +414,7 @@ return DROPBEAR_FAILURE; } - signame = buf_getstring(ses.payload, NULL); + signame = (char *) buf_getstring(ses.payload, NULL); i = 0; while (signames[i].name != 0) {