ClangTidy: fix misplaced cast

This commit is contained in:
Marius Messerschmidt
2023-11-17 22:18:19 +01:00
parent cabd5899f7
commit 960bbfef59
+1 -1
View File
@@ -60,7 +60,7 @@ static void* xcbGetProperty(XcbPropertyData* data, xcb_connection_t* connection,
}
//Why are xcb property strings not null terminated???
void* replyValue = malloc((size_t) (length + 1));
void* replyValue = malloc((size_t)length + 1);
memcpy(replyValue, data->ffxcb_get_property_value(propertyReply), (size_t) length);
((char*) replyValue)[length] = '\0';