summaryrefslogtreecommitdiffstats
path: root/alias.c
diff options
context:
space:
mode:
authorVincent Lefevre <vincent@vinc17.net>2003-07-24 18:40:50 +0000
committerVincent Lefevre <vincent@vinc17.net>2003-07-24 18:40:50 +0000
commit553ef91d6b72bf403c608b81d00f5112bae6da46 (patch)
tree3e37980522ca3dff6edbf237a7cc4ef7c3378147 /alias.c
parent8fe7e1b4e615dbbc655a96e292af24f045987282 (diff)
Some functions/macros like isspace take an int and require the
argument to have the value of an unsigned char (or EOF). Under Solaris, gcc complains when the argument is a char (as this is a possible bug, on platforms where char is signed, like Solaris). The attached patch fixes such problems (well, perhaps I've changed more than necessary, but this doesn't hurt).
Diffstat (limited to 'alias.c')
-rw-r--r--alias.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/alias.c b/alias.c
index 990df959..6be0baf5 100644
--- a/alias.c
+++ b/alias.c
@@ -353,7 +353,7 @@ retry_name:
static int check_alias_name_char (char c)
{
return (c == '-' || c == '_' || c == '+' || c == '=' || c == '.' ||
- isalnum (c));
+ isalnum ((unsigned char) c));
}
int mutt_check_alias_name (const char *s, char *d)