From 54895a7ab29b43b439e5bfdcf27f8e414102d478 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Fri, 10 Aug 2012 20:53:16 +0100 Subject: [PATCH] Fix setting ctype names in old console --- src/console.c | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/src/console.c b/src/console.c index bad37b354..55ca35827 100644 --- a/src/console.c +++ b/src/console.c @@ -535,28 +535,38 @@ int process_command_old(pixel *vid_buf, char *console, char *console_error) { if (strcmp(console4, "all")==0) { - j = atoi(console5); + if (console_parse_type(console5, &j, console_error) || (j = atoi(console5)) || !strcmp(console5,"0") || !strcasecmp(console5,"NONE")) + { + strcpy(console_error, ""); for (i=0; i