Convert strip_ansi() from unsigned char to char

This required a few careful changes to ensure that the result does the same
thing.

Also included a few little cleanups in this function.
This commit is contained in:
Kevin Easton
2015-06-19 23:12:10 +10:00
parent 1b1734d7e1
commit 53f7c374cf
4 changed files with 129 additions and 137 deletions

View File

@@ -243,7 +243,7 @@ extern void BX_update_input (int update)
term_echo(last_input_screen->promptlist->echo);
ptr_free = ptr;
ptr = (char *)strip_ansi(ptr);
ptr = strip_ansi(ptr);
strcat(ptr, ALL_OFF_STR); /* Yes, we can do this */
if (free_it)
new_free(&ptr_free);