Mercurial > dropbear
diff cli-session.c @ 1120:391bb7d560c6
Merge branch 'fix-pointer-sign-warnings' into fix-warnings
author | Gaël PORTAY <gael.portay@gmail.com> |
---|---|
date | Tue, 05 May 2015 20:42:38 +0200 |
parents | 94ff5316980f |
children | bb3a03feb31f aaf576b27a10 |
line wrap: on
line diff
--- a/cli-session.c Sat May 02 16:02:22 2015 +0200 +++ b/cli-session.c Tue May 05 20:42:38 2015 +0200 @@ -192,7 +192,7 @@ CHECKCLEARTOWRITE(); buf_putbyte(ses.writepayload, SSH_MSG_SERVICE_REQUEST); - buf_putstring(ses.writepayload, servicename, strlen(servicename)); + buf_putstring(ses.writepayload, (const unsigned char *)servicename, strlen(servicename)); encrypt_packet(); TRACE(("leave send_msg_service_request")) @@ -372,10 +372,10 @@ /* Operates in-place turning dirty (untrusted potentially containing control * characters) text into clean text. * Note: this is safe only with ascii - other charsets could have problems. */ -void cleantext(unsigned char* dirtytext) { +void cleantext(char* dirtytext) { unsigned int i, j; - unsigned char c; + char c; j = 0; for (i = 0; dirtytext[i] != '\0'; i++) {