We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0247a15 commit 6947273Copy full SHA for 6947273
1 file changed
src/uni_communication.c
@@ -425,7 +425,7 @@ static CommPacket* _packet_disassemble(CommProtocolPacket *protocol_packet) {
425
static void _enlarge_protocol_buffer(char **orginal,
426
CommPayloadLen *orginal_len) {
427
char *p;
428
- CommPayloadLen new_length = *orginal_len * 2 + sizeof(header); /* cover header */
+ CommPayloadLen new_length = *orginal_len * 2 + sizeof(struct header); /* cover header */
429
p = (char *)uni_malloc(new_length);
430
memcpy(p, *orginal, *orginal_len);
431
uni_free(*orginal);
0 commit comments