diff options
author | trz <trz> | 2005-10-14 15:59:05 +0000 |
---|---|---|
committer | trz <trz> | 2005-10-14 15:59:05 +0000 |
commit | ab9c6bcec56162979d8b387b613530861a363876 (patch) | |
tree | 88b48551d0e3b83e9355e2fe264413678967c3d2 /runtime/string.c | |
parent | a4a2cb6f89926bee2826766112f3e076f06a755c (diff) | |
download | systemtap-steved-ab9c6bcec56162979d8b387b613530861a363876.tar.gz systemtap-steved-ab9c6bcec56162979d8b387b613530861a363876.tar.xz systemtap-steved-ab9c6bcec56162979d8b387b613530861a363876.zip |
Fix for PR 1455
Diffstat (limited to 'runtime/string.c')
-rw-r--r-- | runtime/string.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/string.c b/runtime/string.c index ef715b40..b4c14d01 100644 --- a/runtime/string.c +++ b/runtime/string.c @@ -62,6 +62,7 @@ void _stp_sprintf (String str, const char *fmt, ...) _stp_pbuf_len[cpu] = STP_PRINT_BUF_LEN; _stp_print_flush(); } else { + *buf ='\0'; _stp_print_flush(); va_start(args, fmt); _stp_vsprintf(_stp_stdout, fmt, args); |