From 648a5dfc291738f655fa903f2e5f6899817e8126 Mon Sep 17 00:00:00 2001 From: Mark Farrugia Date: Mon, 8 Apr 2019 17:40:40 +1000 Subject: Fix build issue with incorrect formatting specifier Signed-off-by: Mark Farrugia --- src/avirt-config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/avirt-config.c b/src/avirt-config.c index 7d20ffd..c6cf483 100644 --- a/src/avirt-config.c +++ b/src/avirt-config.c @@ -534,10 +534,10 @@ int snd_avirt_route_new(const char *name, int channels, int direction, WRITE_ATTR_TO_DIR(path, "channels", "%d", channels); // Write route_sink_ap into route_source_ap's 'sink' path - WRITE_ATTR_TO_DIR(path, "sink_ap", sink_ap); + WRITE_ATTR_TO_DIR(path, "sink_ap", "%s", sink_ap); // Write route_source_ap into route_sink_ap's 'source' path - WRITE_ATTR_TO_DIR(path, "source_ap", source_ap); + WRITE_ATTR_TO_DIR(path, "source_ap", "%s", source_ap); CHK_ERR(snd_avirt_stream_new(name, channels, !direction, source_ap, true), "Couldn't create stream: %s", name); -- cgit 1.2.3-korg