You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-libs/libmems/files/libmems-1.6_p1-format-secur...

17 lines
547 B

libMems/dmSML/dmsort.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libMems/dmSML/dmsort.c b/libMems/dmSML/dmsort.c
index 4c99215..2cbfa7e 100644
--- a/libMems/dmSML/dmsort.c
+++ b/libMems/dmSML/dmsort.c
@@ -825,7 +825,7 @@ int InitdmSML( long working_mb, long buffer_size, const char* input_filename, co
if ( fgets(buf, sizeof(buf), fp) )
{
sscanf(buf, "MemTotal: %ld kB", &memTotal);
- fprintf( stderr, buf );
+ fprintf( stderr, "%s", buf );
}
fclose(fp);
// allocate about 6/10 of physical memory