* [kbd] [PATCH] Fix errors when building with -Werror=format-security gcc option
@ 2009-02-10 13:31 Herton Ronaldo Krzesinski
2009-02-11 21:43 ` Alexey Gladkov
0 siblings, 1 reply; 2+ messages in thread
From: Herton Ronaldo Krzesinski @ 2009-02-10 13:31 UTC (permalink / raw)
To: kbd
Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
---
src/ksyms.c | 2 +-
src/setfont.c | 2 +-
src/setmetamode.c | 2 +-
src/showconsolefont.c | 4 ++--
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/ksyms.c b/src/ksyms.c
index a322f70..35fed29 100644
--- a/src/ksyms.c
+++ b/src/ksyms.c
@@ -1662,7 +1662,7 @@ list_charsets(FILE *f) {
if(!strncmp(charsets[i].charset, mm[j], lth)) {
if(ct++)
fprintf(f, ",");
- fprintf(f, charsets[i].charset+lth);
+ fprintf(f, "%s", charsets[i].charset+lth);
}
}
fprintf(f, "}");
diff --git a/src/setfont.c b/src/setfont.c
index af3805a..b979cb7 100644
--- a/src/setfont.c
+++ b/src/setfont.c
@@ -725,7 +725,7 @@ saveoldfontplusunicodemap(int fd, char *Ofil) {
static void
send_escseq(int fd, char *seq, int n) {
if (write(fd, seq, n) != n) /* maybe fd is read-only */
- printf(seq);
+ printf("%s", seq);
}
void
diff --git a/src/setmetamode.c b/src/setmetamode.c
index 4b4aab2..ecbaaa3 100644
--- a/src/setmetamode.c
+++ b/src/setmetamode.c
@@ -41,7 +41,7 @@ report(int meta) {
default:
s = _("Strange mode for Meta key?\n");
}
- printf(s);
+ printf("%s", s);
}
struct meta {
diff --git a/src/showconsolefont.c b/src/showconsolefont.c
index 091bc3b..1ccb81b 100644
--- a/src/showconsolefont.c
+++ b/src/showconsolefont.c
@@ -188,9 +188,9 @@ main (int argc, char **argv) {
printf(" ");
for(j=0; j < cols && i+j*rows < n; j++) {
putchar(BASE + (i%nr)*cols+j);
- printf(sep);
+ printf("%s", sep);
if (j%8 == 7)
- printf(sep);
+ printf("%s", sep);
}
putchar('\n');
if (i%8 == 7)
--
1.6.1.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [kbd] [PATCH] Fix errors when building with -Werror=format-security gcc option
2009-02-10 13:31 [kbd] [PATCH] Fix errors when building with -Werror=format-security gcc option Herton Ronaldo Krzesinski
@ 2009-02-11 21:43 ` Alexey Gladkov
0 siblings, 0 replies; 2+ messages in thread
From: Alexey Gladkov @ 2009-02-11 21:43 UTC (permalink / raw)
To: Linux console tools development discussion
Herton Ronaldo Krzesinski wrote:
> Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
Applied, thanks!
--
Rgrds, legion
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-11 21:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-10 13:31 [kbd] [PATCH] Fix errors when building with -Werror=format-security gcc option Herton Ronaldo Krzesinski
2009-02-11 21:43 ` Alexey Gladkov
Linux console tools development discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/kbd/0 kbd/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 kbd kbd/ http://lore.altlinux.org/kbd \
kbd@lists.altlinux.org kbd@lists.altlinux.ru kbd@lists.altlinux.com
public-inbox-index kbd
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.kbd
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git