mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 16:21:01 +00:00
Use unsigned char in comparison for UTF8 check to quiet a compiler warning.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@303638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -450,7 +450,7 @@ char *ast_escape_quoted(const char *string, char *outbuf, int buflen)
|
|||||||
if (!(strchr(allow, *ptr))
|
if (!(strchr(allow, *ptr))
|
||||||
&& !(*ptr >= '#' && *ptr <= '[') /* %x23 - %x5b */
|
&& !(*ptr >= '#' && *ptr <= '[') /* %x23 - %x5b */
|
||||||
&& !(*ptr >= ']' && *ptr <= '~') /* %x5d - %x7e */
|
&& !(*ptr >= ']' && *ptr <= '~') /* %x5d - %x7e */
|
||||||
&& !(*ptr > 0x7f)) { /* UTF8-nonascii */
|
&& !((unsigned char) *ptr > 0x7f)) { /* UTF8-nonascii */
|
||||||
|
|
||||||
if (out - outbuf >= buflen - 2) {
|
if (out - outbuf >= buflen - 2) {
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user