summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2016-05-23 09:43:20 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-05-23 09:43:20 -0500
commit56d5af45847f598becfcfae57e96705cff4459ab (patch)
tree127fb2c203b7771b893a149b351a0a174b8e0902 /include
parent0eb293d2c4a36cc4d48d2fcce278cf8737c1165b (diff)
parent31897d2d99c82f3bfe254f7b4456acef24a53cad (diff)
Merge "func_curl: Don't trim response text on non-ASCII characters"
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';
}
}