Turn cleantext()'s dirtytext argument into char *

This commit is contained in:
Gaël PORTAY
2015-05-02 16:08:08 +02:00
parent d680a9e3fb
commit 7928d83b02
2 changed files with 3 additions and 3 deletions

View File

@@ -372,10 +372,10 @@ static void cli_remoteclosed() {
/* 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++) {