Message ID | 20240628130142.549979-1-r.smirnov@omp.ru |
---|---|
State | New |
Headers | show |
Series | [BlueZ,v1] l2test: replace sprintf() with snprintf() in recv_mode() | expand |
diff --git a/tools/l2test.c b/tools/l2test.c index 7b6c36e16..4c2296899 100644 --- a/tools/l2test.c +++ b/tools/l2test.c @@ -913,7 +913,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); }