浏览代码

fix scanf size

Samuel Thibault 8 年之前
父节点
当前提交
9e216621da
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);