* 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.
This commit is contained in:
parent
f48df6ce29
commit
4bcd5ef922
@ -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
|
||||
|
2
bjm.c
2
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);
|
||||
|
2
file.c
2
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
|
||||
|
@ -1785,7 +1785,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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user