projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Documentation/accounting/getdelays.c: add missing null-terminate after strncpy call
[firefly-linux-kernel-4.4.55.git]
/
Documentation
/
accounting
/
getdelays.c
diff --git
a/Documentation/accounting/getdelays.c
b/Documentation/accounting/getdelays.c
index c6a06b71594d4726ed6cfe5577dbaeda8cba1bb0..f40578026a04519e5e5a34ec613b36131c343444 100644
(file)
--- a/
Documentation/accounting/getdelays.c
+++ b/
Documentation/accounting/getdelays.c
@@
-314,6
+314,7
@@
int main(int argc, char *argv[])
break;
case 'm':
strncpy(cpumask, optarg, sizeof(cpumask));
+ cpumask[sizeof(cpumask) - 1] = '\0';
maskset = 1;
printf("cpumask %s maskset %d\n", cpumask, maskset);
break;