From dc16aa7937713373f54d7f97c75b409b2e3c1a40 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 5 Feb 2010 10:33:58 -0600 Subject: Fix: Use snprintf instead of sprintf in the core --- src/phonebook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/phonebook.c') diff --git a/src/phonebook.c b/src/phonebook.c index 9b81e091..2727282a 100644 --- a/src/phonebook.c +++ b/src/phonebook.c @@ -178,7 +178,7 @@ static void vcard_printf_number(GString *vcards, const char *number, int type, if ((type == TYPE_INTERNATIONAL) && (number[0] != '+')) intl = "+"; - sprintf(buf, "TEL;TYPE=\%s%s:\%s\%s", pref, + snprintf(buf, sizeof(buf), "TEL;TYPE=\%s%s:\%s\%s", pref, category_string, intl, number); vcard_printf(vcards, buf, number); } -- cgit v1.2.3