void-packages/srcpkgs/bluez/patches/max-input.patch

16 lines
502 B
Diff

# Required for musl, taken from alpine: https://git.alpinelinux.org/aports/tree/main/bluez/max-input.patch
diff --git a/src/shared/util.c b/src/shared/util.c
index 0a0308c..a2b8c23 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -65,7 +65,7 @@ void *util_memdup(const void *src, size_t size)
void util_debug_va(util_debug_func_t function, void *user_data,
const char *format, va_list va)
{
- char str[MAX_INPUT];
+ char str[_POSIX_MAX_INPUT];
if (!function || !format)
return;