1
0
forked from drath/libratbag

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 <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2019-07-26 21:12:19 +10:00
parent 02ec2442d3
commit 49291c4b45

View File

@@ -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 */