1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 10:15:12 +03:00
aports/testing/polybar/fix-wstringop-truncation.patch
Mike Sullivan 52d89da440
testing/polybar: fix -Wstringop-truncation
This would otherwise fail building on ppc64le
2019-03-21 18:22:27 +02:00

11 lines
391 B
Diff

--- a/lib/i3ipcpp/src/ipc-util.cpp
+++ b/lib/i3ipcpp/src/ipc-util.cpp
@@ -34,7 +34,7 @@
data = new uint8_t[size];
header = (header_t*)data;
payload = (char*)(data + sizeof(header_t));
- strncpy(header->magic, g_i3_ipc_magic.c_str(), sizeof(header->magic));
+ memcpy(header->magic, g_i3_ipc_magic.c_str(), sizeof(header->magic));
header->size = payload_size;
header->type = 0x0;
}