diff options
Diffstat (limited to 'mh.c')
-rw-r--r-- | mh.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |