summaryrefslogtreecommitdiffstats
path: root/mh.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-11-10 22:14:00 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-11-10 22:14:00 +0000
commita3f726e35f1e7d918061074a85ebe7a2c7c300a5 (patch)
treed9ab2a281be2a13fbb1ec8682d4e5c7ff0502cde /mh.c
parent912c6b0df82fe3a2745d68131db9300222226a73 (diff)
Introduce or rewrite mutt_{str*cmp,strlen} and use them all over the
place. If there are still segmentation faults due to missing NONULLs over, they are gone now.
Diffstat (limited to 'mh.c')
-rw-r--r--mh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mh.c b/mh.c
index 50573d1a..49b0d69a 100644
--- a/mh.c
+++ b/mh.c
@@ -77,7 +77,7 @@ static void maildir_parse_flags(HEADER *h, const char *path)
h->read = 0;
h->replied = 0;
- if ((p = strrchr (path, ':')) != NULL && strncmp (p + 1, "2,", 2) == 0)
+ if ((p = strrchr (path, ':')) != NULL && mutt_strncmp (p + 1, "2,", 2) == 0)
{
p += 3;
while (*p)
@@ -227,7 +227,7 @@ static int maildir_parse_dir(CONTEXT *ctx, struct maildir ***last,
if(subdir)
{
snprintf(buf, sizeof(buf), "%s/%s", ctx->path, subdir);
- is_old = (strcmp("cur", subdir) == 0) && option(OPTMARKOLD);
+ is_old = (mutt_strcmp("cur", subdir) == 0) && option(OPTMARKOLD);
}
else
strfcpy(buf, ctx->path, sizeof(buf));
@@ -451,7 +451,7 @@ static int maildir_sync_message (CONTEXT *ctx, int msgno)
snprintf (fullpath, sizeof (fullpath), "%s/%s", ctx->path, partpath);
snprintf (oldpath, sizeof (oldpath), "%s/%s", ctx->path, h->path);
- if (strcmp (fullpath, oldpath) == 0 && !h->attach_del)
+ if (mutt_strcmp (fullpath, oldpath) == 0 && !h->attach_del)
{
/* message hasn't really changed */
return 0;