projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
selftests/resctrl: Enable gcc checks to detect buffer overflows
[linux-2.6-microblaze.git]
/
tools
/
testing
/
selftests
/
resctrl
/
cqm_test.c
diff --git
a/tools/testing/selftests/resctrl/cqm_test.c
b/tools/testing/selftests/resctrl/cqm_test.c
index
c875615
..
5e7308a
100644
(file)
--- a/
tools/testing/selftests/resctrl/cqm_test.c
+++ b/
tools/testing/selftests/resctrl/cqm_test.c
@@
-86,7
+86,7
@@
static int check_results(struct resctrl_val_param *param, int no_of_bits)
return errno;
}
- while (fgets(temp,
1024
, fp)) {
+ while (fgets(temp,
sizeof(temp)
, fp)) {
char *token = strtok(temp, ":\t");
int fields = 0;