X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=compress.c;h=a483b9e535eb859864fba1d3cb9b24b37d066dd7;hb=a8477ebaa09990b3688164cbe5cf661c4189541d;hp=7362c551f5367393406c1bdb743c8dce9c0510e8;hpb=96d53ff49c308769efbf708e1e65819077cb7af6;p=apps%2Fmadmutt.git diff --git a/compress.c b/compress.c index 7362c55..a483b9e 100644 --- a/compress.c +++ b/compress.c @@ -130,7 +130,7 @@ static void set_path (CONTEXT * ctx) /* Uncompress to /tmp */ mutt_mktemp (tmppath); - ctx->path = safe_malloc (mutt_strlen (tmppath) + 1); + ctx->path = safe_malloc (str_len (tmppath) + 1); strcpy (ctx->path, tmppath); } @@ -189,7 +189,7 @@ static char *get_compression_cmd (const char *cmd, const CONTEXT * ctx) mutt_FormatString (expanded, sizeof (expanded), cmd, compresshook_format_str, (unsigned long) ctx, 0); - return safe_strdup (expanded); + return str_dup (expanded); } int mutt_check_mailbox_compressed (CONTEXT * ctx)