summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2009-06-01 10:32:27 +0000
committerRoland McGrath <roland@redhat.com>2009-06-02 16:45:41 -0700
commit6e1f9bf1dd67ae5ad4f33e98c8d45e10f3f802a9 (patch)
tree4e967c58b6d1ff962835d0dd034ba1d1214268b4
parent9e948fefe0984a8fee90cd2555689e3e8e5037f6 (diff)
downloadstrace-rebase.tar.gz
* bjm.c (sys_query_module): Fix format warning reported byrebase
gcc -Wformat-security. * file.c (tprint_open_modes): Likewise. * process.c (printargv): Likewise. * signal.c (printsignal): Likewise.
-rw-r--r--ChangeLog7
-rw-r--r--bjm.c2
-rw-r--r--file.c2
-rw-r--r--process.c2
-rw-r--r--signal.c2
5 files changed, 11 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 45aa92875..29e42db52 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2009-06-01 Dmitry V. Levin <ldv@altlinux.org>
+ * bjm.c (sys_query_module): Fix format warning reported by
+ gcc -Wformat-security.
+ * file.c (tprint_open_modes): Likewise.
+ * process.c (printargv): Likewise.
+ * signal.c (printsignal): Likewise.
+
+ Clean up header checks.
* configure.ac: Reformat AC_CHECK_HEADERS to keep it sorted and
easily updated, and reduce merging errors in the future.
* system.c: Convert all non-standard #ifdef checks for specific
diff --git a/bjm.c b/bjm.c
index 5947a4192..f56e48f43 100644
--- a/bjm.c
+++ b/bjm.c
@@ -142,7 +142,7 @@ struct tcb *tcp;
for (idx=0; idx<ret; idx++) {
if (idx!=0)
tprintf(",");
- tprintf(mod);
+ tprintf("%s", mod);
mod+=strlen(mod)+1;
}
free(data);
diff --git a/file.c b/file.c
index 53c248951..8023e70d2 100644
--- a/file.c
+++ b/file.c
@@ -395,7 +395,7 @@ sprint_open_modes(mode_t flags)
void
tprint_open_modes(mode_t flags)
{
- tprintf(sprint_open_modes(flags) + sizeof("flags"));
+ tprintf("%s", sprint_open_modes(flags) + sizeof("flags"));
}
static int
diff --git a/process.c b/process.c
index f5a62b1e8..afd36bb8f 100644
--- a/process.c
+++ b/process.c
@@ -1794,7 +1794,7 @@ long addr;
cp.p64 = cp.p32;
if (cp.p64 == 0)
break;
- tprintf(sep);
+ tprintf("%s", sep);
printstr(tcp, cp.p64, -1);
addr += personality_wordsize[current_personality];
}
diff --git a/signal.c b/signal.c
index 93933a277..76504f603 100644
--- a/signal.c
+++ b/signal.c
@@ -402,7 +402,7 @@ void
printsignal(nr)
int nr;
{
- tprintf(signame(nr));
+ tprintf("%s", signame(nr));
}
void