summaryrefslogtreecommitdiffstats
path: root/maildir/maildircache.c
diff options
context:
space:
mode:
Diffstat (limited to 'maildir/maildircache.c')
-rw-r--r--maildir/maildircache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/maildir/maildircache.c b/maildir/maildircache.c
index 4db3a03..973492a 100644
--- a/maildir/maildircache.c
+++ b/maildir/maildircache.c
@@ -87,7 +87,8 @@ char *f, *g;
for (p=userid; *p; p++)
{
++l;
- if (*p < ' ' || *p == ';' || *p == '\'' || *p == ';')
+ if ((unsigned char)*p < ' ' ||
+ *p == ';' || *p == '\'' || *p == ';')
{
fprintf(stderr, "CRIT: maildircache: invalid chars in userid: %s\n", p);
return (NULL);