diff options
author | Denis Kenzior <denkenz@gmail.com> | 2024-02-19 12:32:49 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2024-02-26 09:31:06 -0600 |
commit | c30ec7f111b36eff15539edd39b651612d351d44 (patch) | |
tree | 218c20270b205f794220bbf8688686f7a242b119 | |
parent | ad591d4d762038b96139716338337ae8a7fd2e09 (diff) | |
download | ofono-c30ec7f111b36eff15539edd39b651612d351d44.tar.gz |
hfp_hf_bluez5: Drop use of g_strconcat
Replace with l_strdup_printf instead
-rw-r--r-- | plugins/hfp_hf_bluez5.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c index d45dda9d4..944d44ba3 100644 --- a/plugins/hfp_hf_bluez5.c +++ b/plugins/hfp_hf_bluez5.c @@ -32,6 +32,7 @@ #include <fcntl.h> #include <sys/socket.h> +#include <ell/ell.h> #include <glib.h> #include <gdbus.h> @@ -213,11 +214,9 @@ static struct ofono_modem *modem_register(const char *device, GDBusProxy *proxy) dbus_message_iter_get_basic(&iter, &remote); - path = g_strconcat("hfp", device, NULL); - + path = l_strdup_printf("hfp%s", device); modem = ofono_modem_create(path, "hfp"); - - g_free(path); + l_free(path); if (modem == NULL) return NULL; |