aboutsummaryrefslogtreecommitdiffstats
path: root/testing/polybar/fix-wstringop-truncation.patch
blob: cdf1eac808c7a5b7697276d37abdf378b46de98e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- 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;
 }