[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH 2/2] fix a -Wformat (boy, that's a bloody serious error)



---
 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
-- 
2.3.5


Reply to: