projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix off-by-one in open_memstream
[ust.git]
/
libust
/
tracectl.c
diff --git
a/libust/tracectl.c
b/libust/tracectl.c
index b058cb3ce19d0d317790ddbf03103164508d1eb4..0cff6fda9f035e8a009232268530e8e39e206ab4 100644
(file)
--- a/
libust/tracectl.c
+++ b/
libust/tracectl.c
@@
-957,7
+957,7
@@
static void process_client_cmd(struct ustcomm_header *recv_header,
print_markers(fp);
fclose(fp);
print_markers(fp);
fclose(fp);
- reply_header->size = size
;
+ reply_header->size = size
+ 1; /* Include final \0 */
result = ustcomm_send(sock, reply_header, ptr);
result = ustcomm_send(sock, reply_header, ptr);
@@
-983,7
+983,7
@@
static void process_client_cmd(struct ustcomm_header *recv_header,
print_trace_events(fp);
fclose(fp);
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);
result = ustcomm_send(sock, reply_header, ptr);
This page took
0.022607 seconds
and
4
git commands to generate.