Prevent Q_IsColorString from asserting on negative ascii chars
This commit is contained in:
parent
09166ba05e
commit
a6df505d59
2 changed files with 23 additions and 1 deletions
|
@ -409,7 +409,7 @@ extern vec4_t colorMdGrey;
|
|||
extern vec4_t colorDkGrey;
|
||||
|
||||
#define Q_COLOR_ESCAPE '^'
|
||||
#define Q_IsColorString(p) ((p) && *(p) == Q_COLOR_ESCAPE && *((p)+1) && isalnum(*((p)+1))) // ^[0-9a-zA-Z]
|
||||
qboolean Q_IsColorString(const char *p); // ^[0-9a-zA-Z]
|
||||
|
||||
#define COLOR_BLACK '0'
|
||||
#define COLOR_RED '1'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue