File: 0003-Fix-a-potential-format-string-issue.patch

package info (click to toggle)
spandsp 0.0.6%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 15,796 kB
  • sloc: ansic: 123,211; xml: 13,229; sh: 12,189; cpp: 1,521; makefile: 1,097
file content (21 lines) | stat: -rw-r--r-- 654 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Tzafrir Cohen <tzafrir@debian.org>
Date: Fri, 15 Apr 2016 09:51:51 +0200
Subject: Fix a potential format string issue

---
 tests/echo_tests.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/echo_tests.c b/tests/echo_tests.c
index 2bf0d68..c596b78 100644
--- a/tests/echo_tests.c
+++ b/tests/echo_tests.c
@@ -621,7 +621,7 @@ static void run_test(echo_can_state_t *ctx, int16_t (*tx_source)(void), int16_t
 static void print_test_title(const char *title)
 {
     if (quiet == FALSE) 
-        printf(title);
+        printf("%s", title);
 }
 /*- End of function --------------------------------------------------------*/