Browse Source

fix scanf size

Samuel Thibault 8 years ago
parent
commit
9e216621da
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/perfmodels/value_nan.c

+ 1 - 1
tests/perfmodels/value_nan.c

@@ -76,7 +76,7 @@ int _check_number(double val, int checknan)
 	char str[10];
 	// ... but is read with the format %le
 	int x = _starpu_read_double(f, "%le", &lat);
-	int y = fscanf(f, " %10s", str);
+	int y = fscanf(f, " %9s", str);
 	fclose(f);
 	unlink(filename);