From 49291c4b451283dbbaa2078bef1b1e0d38e1e42d Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 26 Jul 2019 21:12:19 +1000 Subject: [PATCH] ratbagd: encode the test device path without underscores sd-bus encodes underscores as _5f which looks like memory corruption. Let's skip them, they don't add value anyway. Signed-off-by: Peter Hutterer --- ratbagd/ratbagd-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ratbagd/ratbagd-test.c b/ratbagd/ratbagd-test.c index d41e3e22..0b11ff45 100644 --- a/ratbagd/ratbagd-test.c +++ b/ratbagd/ratbagd-test.c @@ -198,7 +198,7 @@ int ratbagd_reset_test_device(sd_bus_message *m, device = ratbag_device_new_test_device(ctx->lib_ctx, &ratbagd_test_device_descr); - snprintf(devicename, sizeof(devicename), "test_device_%d", count++); + snprintf(devicename, sizeof(devicename), "testdevice%d", count++); r = ratbagd_device_new(&ratbagd_test_device, ctx, devicename, device); /* the ratbagd_device takes its own reference, drop ours */