summaryrefslogtreecommitdiffstats
path: root/mh.c
diff options
context:
space:
mode:
Diffstat (limited to 'mh.c')
-rw-r--r--mh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mh.c b/mh.c
index ce724f3e..3ea7f158 100644
--- a/mh.c
+++ b/mh.c
@@ -324,7 +324,7 @@ int mh_valid_message (const char *s)
{
for (; *s; s++)
{
- if (!isdigit (*s))
+ if (!isdigit ((unsigned char) *s))
return 0;
}
return 1;
@@ -452,7 +452,7 @@ void maildir_create_filename (const char *path, HEADER *hdr, char *msg, char *fu
FOREVER
{
snprintf (msg, _POSIX_PATH_MAX, "%s/%ld.%d_%d.%s%s",
- subdir, time (NULL), getpid (), Counter++, Hostname, suffix);
+ subdir, time (NULL), getpid (), Counter++, NONULL(Hostname), suffix);
snprintf (full, _POSIX_PATH_MAX, "%s/%s", path, msg);
if (stat (full, &sb) == -1 && errno == ENOENT) return;
}