summaryrefslogtreecommitdiffstats
path: root/mh.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-08-25 22:33:07 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-08-25 22:33:07 +0000
commit986ab5e943db7aaed2aed98f8b74e4c26666fdd8 (patch)
tree58cfec1114686823dbdbf22cf2ca52f77eb1075d /mh.c
parent9044dd4d58af4b4d64a6e68b7b76c42d317e7ce5 (diff)
CVS branch clean-up.
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;
}