Diff between 9886a7557b3cd2e744cfb5d12679228a4caea1aa and 559e40a8b9a413119cebe2f5dfa2ece04daff6ff

Changed Files

File Additions Deletions Status
tools/rctest.c +1 -1 modified

Full Patch

diff --git a/tools/rctest.c b/tools/rctest.c
index ff91eb2..e39d313 100644
--- a/tools/rctest.c
+++ b/tools/rctest.c
@@ -500,7 +500,7 @@ static void recv_mode(int sk)
 					timestamp = 0;
 					memset(ts, 0, sizeof(ts));
 				} else {
-					sprintf(ts, "[%lld.%lld] ",
+					snprintf(ts, sizeof(ts), "[%lld.%lld] ",
 							(long long)tv.tv_sec,
 							(long long)tv.tv_usec);
 				}