mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-29 05:40:25 -04:00
Fix build errors caused by -Werror=format-security.
When compiled with hardening-flags enabled, ld10k1 fails to build due to a pair of unsafe printf usages that trigger -Werror=format-security. Signed-off-by: Jordi Mallach <jordi@debian.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
a17282503f
commit
e79e2011ef
2 changed files with 2 additions and 2 deletions
|
|
@ -62,7 +62,7 @@ static void vlog(const char *label, const char *fmt, va_list va)
|
|||
localtime(&tp));
|
||||
fprintf(out, "%s %s", timestr, label);
|
||||
} else
|
||||
fprintf(out, label);
|
||||
fprintf(out, "%s", label);
|
||||
vfprintf(out, fmt, va);
|
||||
fprintf(out, "\n");
|
||||
fflush(out);
|
||||
|
|
|
|||
|
|
@ -868,7 +868,7 @@ err:
|
|||
|
||||
void debug_print(char *str)
|
||||
{
|
||||
printf(str);
|
||||
printf("%s", str);
|
||||
}
|
||||
|
||||
static int debug(int deb)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue