X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=alias.c;h=f1021efa1d74a77bf4c7fc4713eb38a51523be73;hp=fdf74c0a8bcd0f4fda692fef1d385d0c7f1cfefc;hb=892df7e70376da43374d834b8a825ea2d59efd06;hpb=b23d5033080fe9f9fba038e3cf1e3ec2b0a0d33d diff --git a/alias.c b/alias.c index fdf74c0..f1021ef 100644 --- a/alias.c +++ b/alias.c @@ -160,7 +160,8 @@ static int alias_sanitize(const char *s, char *d) s++; } - *d = '\0'; + if (d) + *d = '\0'; return rv; } @@ -286,7 +287,7 @@ void mutt_create_alias(ENVELOPE *cur, address_t *iadr) return; } - mutt_expand_path(buf, sizeof (buf)); + mutt_expand_path(buf, sizeof(buf)); rc = safe_fopen (buf, "a"); if (rc) {