aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-15 16:34:13 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-15 16:34:13 +0000
commite7a90a16d10d52a031d02975eab38c2458fc685b (patch)
treecb6796cb05336309679769051094b4973e04cd12 /include/asterisk
parent1325cf60c3982119d7ce51630bf78746ab24a4b4 (diff)
Make a few changes so that characters in the upper half of the ISO-8859-1
character set don't get stripped when reading configuration. (closes issue #10982, dandre) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@85561 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/strings.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asterisk/strings.h b/include/asterisk/strings.h
index 2fff9c133..70517a4d6 100644
--- a/include/asterisk/strings.h
+++ b/include/asterisk/strings.h
@@ -50,7 +50,7 @@ static force_inline int ast_strlen_zero(const char *s)
AST_INLINE_API(
char *ast_skip_blanks(const char *str),
{
- while (*str && *str < 33)
+ while (*str && ((unsigned char) *str) < 33)
str++;
return (char *)str;
}
@@ -75,7 +75,7 @@ char *ast_trim_blanks(char *str),
actually set anything unless we must, and it's easier just
to set each position to \0 than to keep track of a variable
for it */
- while ((work >= str) && *work < 33)
+ while ((work >= str) && ((unsigned char) *work) < 33)
*(work--) = '\0';
}
return str;
@@ -91,7 +91,7 @@ char *ast_trim_blanks(char *str),
AST_INLINE_API(
char *ast_skip_nonblanks(char *str),
{
- while (*str && *str > 32)
+ while (*str && ((unsigned char) *str) > 32)
str++;
return str;
}