diff --git a/obexd/plugins/vcard.c b/obexd/plugins/vcard.c
index 3072306..f1d9edc 100644
--- a/obexd/plugins/vcard.c
+++ b/obexd/plugins/vcard.c
if ((type == TYPE_INTERNATIONAL) && (number[0] != '+'))
intl = "+";
+ snprintf(field, sizeof(field), "%s%s", intl, number);
+
if (select_qp_encoding(format, number, NULL)) {
snprintf(buf, sizeof(buf), "TEL;%s", category_string);
- snprintf(field, sizeof(field), "%s%s", intl, number);
vcard_qp_print_encoded(vcards, buf, field, NULL);
return;
}
- snprintf(buf, sizeof(buf), "TEL;%s:%s\%s", category_string,
- intl, number);
-
- vcard_printf(vcards, buf, number);
+ vcard_printf(vcards, "TEL;%s:%s", category_string, field);
}
static void vcard_printf_tag(GString *vcards, uint8_t format,