Patch for reiser4progs 1.0.7 to build with -Werror=format-security
The attached patch fixes building reiser4progs 1.0.7 with the -Werror=format-security CFLAG, which is used by default now in Mandriva. Could you review it and include it if it's correct?
Thanks,
Signature · 1 line
Frederik Himpe <[email protected]>
libmisc/ui.c +1 -1
@@ -116,7 +116,7 @@ line_width =0 ; } -fprintf (stream, word); +fprintf (stream,"%s" , word); line_width +=aal_strlen (word);
librepair/add_missing.c +1 -1
@@ -65,7 +65,7 @@ time_str =ctime (&am->stat.time); time_str[aal_strlen (time_str) -1 ] ='\0' ;aal_stream_format (&stream, time_str); -aal_mess (stream.entity); +aal_mess ("%s" , (char *) stream.entity);aal_stream_fini (&stream); }
librepair/cleanup.c +1 -1
@@ -26,7 +26,7 @@ time_str =ctime (&cleanup->stat.time); time_str[aal_strlen (time_str) -1 ] ='\0' ;aal_stream_format (&stream, time_str); -aal_mess (stream.entity); +aal_mess ("%s" , (char *) stream.entity);aal_stream_fini (&stream); }
librepair/disk_scan.c +1 -1
@@ -45,7 +45,7 @@ time_str =ctime (&ds->stat.time); time_str[aal_strlen (time_str) -1 ] ='\0' ;aal_stream_format (&stream, time_str); -aal_mess (stream.entity); +aal_mess ("%s" , (char *) stream.entity);aal_stream_fini (&stream); }
librepair/filter.c +1 -1
@@ -591,7 +591,7 @@ time_str =ctime (&fd->stat.time); time_str[aal_strlen (time_str) -1 ] ='\0' ;aal_stream_format (&stream, time_str); -aal_mess (stream.entity); +aal_mess ("%s" , (char *) stream.entity);aal_stream_fini (&stream); }
librepair/semantic.c +1 -1
@@ -791,7 +791,7 @@ time_str =ctime (&sem->stat.time); time_str[aal_strlen (time_str) -1 ] ='\0' ;aal_stream_format (&stream, time_str); -aal_mess (stream.entity); +aal_mess ("%s" , (char *) stream.entity);aal_stream_fini (&stream); }
librepair/twig_scan.c +1 -1
@@ -119,7 +119,7 @@ time_str[aal_strlen (time_str) -1 ] ='\0' ;aal_stream_format (&stream, time_str); -aal_mess (stream.entity); +aal_mess ("%s" , (char *) stream.entity);aal_stream_fini (&stream); }
progs/debugfs/browse.c +1 -1
@@ -27,7 +27,7 @@if (read <=0 )break ; -printf (buff); +printf ("%s" , buff); }return 0 ;
progs/debugfs/print.c +1 -1
@@ -24,7 +24,7 @@if ((size =aal_stream_read (stream, buff, size)) <=0 )return size; -printf (buff); +printf ("%s" , buff); }return 0 ;