void-packages/srcpkgs/usbguard/patches/musl.patch

12 lines
345 B
Diff

--- a/src/CLI/usbguard.cpp 2019-06-13 11:51:53.787863657 +0000
+++ b/src/CLI/usbguard.cpp 2019-08-23 01:52:34.233056882 +0000
@@ -99,7 +97,7 @@
static int usbguard_cli(int argc, char* argv[])
{
- usbguard_arg0 = ::basename(argv[0]);
+ usbguard_arg0 = ::basename(strdup(argv[0]));
if (argc == 1) {
showTopLevelHelp();