comparison cli-session.c @ 1122:aaf576b27a10

Merge pull request #13 from gazoo74/fix-warnings Fix warnings
author Matt Johnston <matt@ucc.asn.au>
date Thu, 04 Jun 2015 23:08:50 +0800
parents 8e0280986710 94ff5316980f
children 6aeadee3f16b
comparison
equal deleted inserted replaced
1087:1e486f368ec3 1122:aaf576b27a10
372 } 372 }
373 373
374 /* Operates in-place turning dirty (untrusted potentially containing control 374 /* Operates in-place turning dirty (untrusted potentially containing control
375 * characters) text into clean text. 375 * characters) text into clean text.
376 * Note: this is safe only with ascii - other charsets could have problems. */ 376 * Note: this is safe only with ascii - other charsets could have problems. */
377 void cleantext(unsigned char* dirtytext) { 377 void cleantext(char* dirtytext) {
378 378
379 unsigned int i, j; 379 unsigned int i, j;
380 unsigned char c; 380 char c;
381 381
382 j = 0; 382 j = 0;
383 for (i = 0; dirtytext[i] != '\0'; i++) { 383 for (i = 0; dirtytext[i] != '\0'; i++) {
384 384
385 c = dirtytext[i]; 385 c = dirtytext[i];