From 85e1c4984250418b4805ba12d7c6cd5784fa51ba Mon Sep 17 00:00:00 2001 From: "KJK::Hyperion" Date: Wed, 19 Mar 2003 21:34:13 +0000 Subject: [PATCH] Fixed parsing of color specification strings containing "bright" svn path=/trunk/; revision=4348 --- rosapps/cmd/strtoclr.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rosapps/cmd/strtoclr.c b/rosapps/cmd/strtoclr.c index 19c06e8e96f..f309623eb55 100644 --- a/rosapps/cmd/strtoclr.c +++ b/rosapps/cmd/strtoclr.c @@ -193,7 +193,7 @@ static WORD str_to_color(LPTSTR* arg_str) { LPTSTR str; - BOOL bBri=FALSE; + BOOL bBri; WORD tmp_clr,ret_clr; @@ -206,6 +206,8 @@ WORD str_to_color(LPTSTR* arg_str) /*foreground*/ + bBri = FALSE; + if(_tcsnicmp(str,"bri",3) == 0 ) { bBri = TRUE; @@ -226,7 +228,8 @@ WORD str_to_color(LPTSTR* arg_str) ret_clr = tmp_clr | (bBri << 3); /*background*/ - + bBri = FALSE; + if(_tcsnicmp(str,"bri",3) == 0 ) { bBri = TRUE;