summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/avirt-config.c4
1 files 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);