Drop unsafe version of dc_decode_header_words

Replace all call sites with safe version and adjust tests as apporiate.
This commit is contained in:
Dmitry Bogatov
2019-09-28 19:29:53 +00:00
committed by holger krekel
parent 34b3ddf63b
commit 618abd63cf
2 changed files with 24 additions and 71 deletions

View File

@@ -1965,7 +1965,7 @@ unsafe fn add_or_lookup_contact_by_addr(
/* add addr_spec if missing, update otherwise */
let mut display_name_dec = "".to_string();
if !display_name_enc.is_null() {
let tmp = as_str(dc_decode_header_words(display_name_enc));
let tmp = dc_decode_header_words_safe(as_str(display_name_enc));
display_name_dec = normalize_name(&tmp);
}
/*can be NULL*/