Skip to content

Commit 8ce6822

Browse files
committed
CPP: Fix format literal.
1 parent 95ab8cc commit 8ce6822

File tree

1 file changed

+1
-1
lines changed
  • cpp/ql/test/query-tests/Likely Bugs/Memory Management/Padding/NonPortablePrintf

1 file changed

+1
-1
lines changed

cpp/ql/test/query-tests/Likely Bugs/Memory Management/Padding/NonPortablePrintf/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ void test1()
66
long l;
77
void *ptr;
88

9-
printf("%l\n", l); // GOOD
9+
printf("%ld\n", l); // GOOD
1010
printf("%d\n", l); // BAD
1111

1212
printf("%p\n", ptr); // GOOD

0 commit comments

Comments
 (0)