Skip to content

Commit fc8b817

Browse files
committed
Fixed clang warnings
1 parent acf37bb commit fc8b817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/ptest/demo/trig.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ PTEST_BEGIN("demo", trig, 2.0, 10000)
6363
return;
6464

6565
char buf[80];
66-
sprintf(buf, "%s x %d", label, int(count));
66+
snprintf(buf, sizeof(buf), "%s x %d", label, int(count));
6767
printf("Testing %s numbers...\n", buf);
6868

6969
PTEST_LOOP(buf,

0 commit comments

Comments
 (0)