summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-02-05 12:00:14 -0600
committerDenis Kenzior <denkenz@gmail.com>2010-02-05 12:00:14 -0600
commitd223243913fab44322892148ad7d2651de3364d5 (patch)
treea4615e3d3a7d7bc31c8b120d1df67ec0887c1cf6 /plugins
parent1721f81fe93919b7b9fdee85bd105b9c4ebf48f3 (diff)
downloadofono-d223243913fab44322892148ad7d2651de3364d5.tar.bz2
Fix: Use snprintf instead of sprintf in HFP
Diffstat (limited to 'plugins')
-rw-r--r--plugins/hfp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/hfp.c b/plugins/hfp.c
index 981b05b2..51f1d9a8 100644
--- a/plugins/hfp.c
+++ b/plugins/hfp.c
@@ -377,7 +377,7 @@ static int service_level_connection(struct ofono_modem *modem, int fd)
if (getenv("OFONO_AT_DEBUG"))
g_at_chat_set_debug(chat, hfp_debug, NULL);
- sprintf(buf, "AT+BRSF=%d", data->hf_features);
+ snprintf(buf, sizeof(buf), "AT+BRSF=%d", data->hf_features);
g_at_chat_send(chat, buf, brsf_prefix,
brsf_cb, modem, NULL);
data->chat = chat;