Cherry-pick upstream format-string fix
Andreas Henriksson
4 years ago
0 | From: Alexander Kanavin <alex.kanavin@gmail.com> | |
1 | Date: Wed, 4 Dec 2019 13:14:01 +0100 | |
2 | Subject: analyze.l: add missing string format | |
3 | ||
4 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | |
5 | --- | |
6 | src/libkeymap/analyze.l | 2 +- | |
7 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
8 | ||
9 | diff --git a/src/libkeymap/analyze.l b/src/libkeymap/analyze.l | |
10 | index 9adcea7..e05e7e7 100644 | |
11 | --- a/src/libkeymap/analyze.l | |
12 | +++ b/src/libkeymap/analyze.l | |
13 | @@ -476,7 +476,7 @@ To to|To|TO | |
14 | ||
15 | strerror_r(errno, buf, sizeof(buf)); | |
16 | ||
17 | - ERR(yyextra, buf); | |
18 | + ERR(yyextra, "%s", buf); | |
19 | return(ERROR); | |
20 | } | |
21 |