summarylogtreecommitdiffstats
path: root/0001-fix-werror-format-security.patch
blob: de4b4da751ce0289983cf424e80707d1553ade55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 src/tools/gen_code/gen_code.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tools/gen_code/gen_code.c b/src/tools/gen_code/gen_code.c
index 9a87923..7548318 100644
--- a/src/tools/gen_code/gen_code.c
+++ b/src/tools/gen_code/gen_code.c
@@ -3453,7 +3453,7 @@ static void printFuncHeaderDoc( FILE *out,
    int first;
 
    fprintf( out, "%sTA_%s - %s\n", prefix, funcInfo->name, funcInfo->hint );
-   fprintf( out, prefix );
+   fprintf( out, "%s", prefix );
 
    fprintf( out, "\n" );
    fprintf( out, "%sInput  = ", prefix );
@@ -3477,7 +3477,7 @@ static void printFuncHeaderDoc( FILE *out,
             if( inputParamInfo->flags & TA_IN_PRICE_##upperParam ) \
             { \
                if( !first ) fprintf( out, ", " ); \
-               fprintf( out, lowerParam ); \
+               fprintf( out, "%s", lowerParam ); \
                first = 0; \
             } \
          }
-- 
2.42.0