mirror of git://git.sysmocom.de/ofono
phonebook: fix invalid sprintf sequence
This commit is contained in:
parent
a63988a33f
commit
bdda846134
|
@ -179,7 +179,7 @@ static void vcard_printf_number(GString *vcards, const char *number, int type,
|
||||||
if ((type == TYPE_INTERNATIONAL) && (number[0] != '+'))
|
if ((type == TYPE_INTERNATIONAL) && (number[0] != '+'))
|
||||||
intl = "+";
|
intl = "+";
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "TEL;TYPE=\%s%s:\%s\%s", pref,
|
snprintf(buf, sizeof(buf), "TEL;TYPE=%s%s:%s%s", pref,
|
||||||
category_string, intl, number);
|
category_string, intl, number);
|
||||||
vcard_printf(vcards, buf, number);
|
vcard_printf(vcards, buf, number);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue