diff options
author | Armin Kuster <akuster808@gmail.com> | 2017-10-26 13:25:14 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2018-03-01 16:10:35 -0800 |
commit | 036b3e794650cfc92f2f983d860ce93575198b57 (patch) | |
tree | a3c238eefa863226c5d5b3e4fc496198a0f5cd8f /meta-oe/recipes-dbs/sqlite/sqlite-2.8.17/0001-shell.c-Fix-format-not-a-string-literal-warning.patch | |
parent | b836c5b810898cf51baa012c8debe816a715717a (diff) | |
download | meta-openembedded-036b3e794650cfc92f2f983d860ce93575198b57.tar.gz |
sqlite: move to recipes-dbs
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-oe/recipes-dbs/sqlite/sqlite-2.8.17/0001-shell.c-Fix-format-not-a-string-literal-warning.patch')
-rw-r--r-- | meta-oe/recipes-dbs/sqlite/sqlite-2.8.17/0001-shell.c-Fix-format-not-a-string-literal-warning.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-oe/recipes-dbs/sqlite/sqlite-2.8.17/0001-shell.c-Fix-format-not-a-string-literal-warning.patch b/meta-oe/recipes-dbs/sqlite/sqlite-2.8.17/0001-shell.c-Fix-format-not-a-string-literal-warning.patch new file mode 100644 index 000000000..c5d7c0c81 --- /dev/null +++ b/meta-oe/recipes-dbs/sqlite/sqlite-2.8.17/0001-shell.c-Fix-format-not-a-string-literal-warning.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 443980ddc82fb40e2e1f9544f2be169bd23dd246 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 17 Jun 2017 16:49:24 -0700 | ||
4 | Subject: [PATCH] shell.c: Fix format not a string literal warning | ||
5 | |||
6 | src/shell.c:695:20: error: format not a string literal and no format arguments [-Werror=format-security] | ||
7 | | fprintf(stderr,zHelp); | ||
8 | | ^~~~~ | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | src/shell.c | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/src/shell.c b/src/shell.c | ||
18 | index bb46c49..3c6fe0f 100644 | ||
19 | --- a/src/shell.c | ||
20 | +++ b/src/shell.c | ||
21 | @@ -692,7 +692,7 @@ static int do_meta_command(char *zLine, struct callback_data *p){ | ||
22 | }else | ||
23 | |||
24 | if( c=='h' && strncmp(azArg[0], "help", n)==0 ){ | ||
25 | - fprintf(stderr,zHelp); | ||
26 | + fprintf(stderr, "%s", zHelp); | ||
27 | }else | ||
28 | |||
29 | if( c=='i' && strncmp(azArg[0], "indices", n)==0 && nArg>1 ){ | ||
30 | -- | ||
31 | 2.13.1 | ||
32 | |||