size returned by open_memstream does not include the final \0. We have to add
1 to the size of the message sent.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
print_markers(fp);
fclose(fp);
- reply_header->size = size;
+ reply_header->size = size + 1; /* Include final \0 */
result = ustcomm_send(sock, reply_header, ptr);
print_trace_events(fp);
fclose(fp);
- reply_header->size = size;
+ reply_header->size = size + 1; /* Include final \0 */
result = ustcomm_send(sock, reply_header, ptr);