diff cli-session.c @ 1101:94ff5316980f

Turn cleantext()'s dirtytext argument into char *
author Gaël PORTAY <gael.portay@gmail.com>
date Sat, 02 May 2015 16:08:08 +0200
parents c45d65392c1a
children bb3a03feb31f aaf576b27a10
line wrap: on
line diff
--- a/cli-session.c	Sat May 02 15:26:05 2015 +0200
+++ b/cli-session.c	Sat May 02 16:08:08 2015 +0200
@@ -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++) {