Changeset 1431:f82b38f77f48 for compose.c
Legend:
- Unmodified
- Added
- Removed
-
compose.c
r1426 r1431 153 153 { 154 154 snprintf (input_signas, sizeof (input_signas), "0x%s", pgp_keyid (p)); 155 safe_free((void **) &PgpSignAs); PgpSignAs = safe_strdup (input_signas);156 safe_free((void **) &PgpSignMicalg); PgpSignMicalg = safe_strdup (pgp_pkalg_to_mic (p->algorithm));155 mutt_str_replace (&PgpSignAs, input_signas); 156 mutt_str_replace (&PgpSignMicalg, pgp_pkalg_to_mic (p->algorithm)); 157 157 pgp_free_key (&p); 158 158 … … 189 189 } 190 190 else 191 { 192 safe_free ((void **) &PgpSignMicalg); 193 PgpSignMicalg = safe_strdup (input_micalg); 194 } 191 mutt_str_replace (&PgpSignMicalg, input_micalg); 195 192 } 196 193 } … … 488 485 if (mutt_get_field ("Subject: ", buf, sizeof (buf), 0) == 0) 489 486 { 490 safe_free ((void **) &msg->env->subject); 491 msg->env->subject = safe_strdup (buf); 487 mutt_str_replace (&msg->env->subject, buf); 492 488 move (HDR_SUBJECT, HDR_XOFFSET); 493 489 clrtoeol (); … … 826 822 if (mutt_get_field ("Description: ", buf, sizeof (buf), 0) == 0) 827 823 { 828 safe_free ((void **) &idx[menu->current]->content->description); 829 idx[menu->current]->content->description = safe_strdup (buf); 824 mutt_str_replace (&idx[menu->current]->content->description, buf); 830 825 menu->redraw = REDRAW_CURRENT; 831 826 } … … 965 960 break; 966 961 967 safe_free ((void **) &idx[menu->current]->content->filename); 968 idx[menu->current]->content->filename = safe_strdup (fname); 962 mutt_str_replace (&idx[menu->current]->content->filename, fname); 969 963 menu->redraw = REDRAW_CURRENT; 970 964 … … 1037 1031 1038 1032 idx[menu->current]->content->type = itype; 1039 safe_free ((void **) &idx[menu->current]->content->subtype); 1040 idx[menu->current]->content->subtype = safe_strdup (p); 1033 mutt_str_replace (&idx[menu->current]->content->subtype, p); 1041 1034 idx[menu->current]->content->unlink = 1; 1042 1035 menu->redraw |= REDRAW_INDEX | REDRAW_STATUS;
