summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorzuul <zuul@gerrit.asterisk.org>2016-05-23 09:27:29 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-05-23 09:27:29 -0500
commit373e68539b19b66ead84237c6637abba506d24fb (patch)
treebd7c83c77d4cc9a5290c0410c9b8e9ae824ace42 /include
parent80d1fc859ecc0dfd5af73fad066db9cb2e000187 (diff)
parent9ddaab789eb1ac5afc440ab751ad1b2288ce35e0 (diff)
Merge "func_curl: Don't trim response text on non-ASCII characters" into 13
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/strings.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/strings.h b/include/asterisk/strings.h
index 0e2f69ba8..2ca75a69c 100644
--- a/include/asterisk/strings.h
+++ b/include/asterisk/strings.h
@@ -688,7 +688,7 @@ void ast_str_trim_blanks(struct ast_str *buf),
if (!buf) {
return;
}
- while (buf->__AST_STR_USED && buf->__AST_STR_STR[buf->__AST_STR_USED - 1] < 33) {
+ while (buf->__AST_STR_USED && ((unsigned char) buf->__AST_STR_STR[buf->__AST_STR_USED - 1]) < 33) {
buf->__AST_STR_STR[--(buf->__AST_STR_USED)] = '\0';
}
}