summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Nicholson <mnicholson@digium.com>2011-01-25 15:52:42 +0000
committerMatthew Nicholson <mnicholson@digium.com>2011-01-25 15:52:42 +0000
commit2686253f160aef2a390a0eee0cde630800cddf3d (patch)
tree7294e476baa9a3d1460de06ac093063dfd7365e8
parent092134399c14b6256e1bc377951e16061dfd2331 (diff)
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
-rw-r--r--main/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/utils.c b/main/utils.c
index 6e07183f2..ec1f2730b 100644
--- a/main/utils.c
+++ b/main/utils.c
@@ -450,7 +450,7 @@ char *ast_escape_quoted(const char *string, char *outbuf, int buflen)
if (!(strchr(allow, *ptr))
&& !(*ptr >= '#' && *ptr <= '[') /* %x23 - %x5b */
&& !(*ptr >= ']' && *ptr <= '~') /* %x5d - %x7e */
- && !(*ptr > 0x7f)) { /* UTF8-nonascii */
+ && !((unsigned char) *ptr > 0x7f)) { /* UTF8-nonascii */
if (out - outbuf >= buflen - 2) {
break;