]> git.pld-linux.org Git - packages/foremost.git/blob - foremost-format-security.patch
Fix build with -Werror=format-security
[packages/foremost.git] / foremost-format-security.patch
1 --- foremost-1.5.7/extract.c.formatsec  2013-02-16 11:26:37.783832687 +0100
2 +++ foremost-1.5.7/extract.c    2013-02-16 11:27:31.220209864 +0100
3 @@ -2145,7 +2145,7 @@ unsigned char *extract_exe(f_state *s, u
4                         ret_time->tm_sec);
5         chop(ascii_time);
6  
7 -       sprintf(comment, ascii_time);
8 +       sprintf(comment, "%s", ascii_time);
9         strcat(needle->comment, comment);
10         exe_char = htos(&foundat[22], FOREMOST_LITTLE_ENDIAN);
11         if (exe_char & 0x2000)
This page took 0.061924 seconds and 3 git commands to generate.