Changeset 1431:f82b38f77f48 for attach.c

Show
Ignore:
Timestamp:
2000-01-10 02:35:48 (9 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

Add (and use) a function mutt_str_replace, which essentially
replaces the sequence:

safe_free (&s);
s = safe_strdup (t);

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • attach.c

    r1423 r1431  
    6666  { 
    6767    mutt_copy_stream (fpin, fpout); 
    68     FREE(&a->filename); 
    69     a->filename = safe_strdup(tempfile); 
     68    mutt_str_replace (&a->filename, tempfile); 
    7069    a->unlink = 1; 
    7170