diff options
author | Changbin Du <changbin.du@intel.com> | 2018-01-16 10:02:30 +0100 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-01-23 21:57:28 +0100 |
commit | f4d0706cde27f29ff89e6bf94ded4113f8fe6e80 (patch) | |
tree | 5cd8ddafa8948c8f64fb52c88d61f85d2d773cb7 /kernel/acct.c | |
parent | tracing: Clear parser->idx if only spaces are read (diff) | |
download | linux-f4d0706cde27f29ff89e6bf94ded4113f8fe6e80.tar.xz linux-f4d0706cde27f29ff89e6bf94ded4113f8fe6e80.zip |
tracing: Make sure the parsed string always terminates with '\0'
Always mark the parsed string with a terminated nul '\0' character. This removes
the need for the users to have to append the '\0' before using the parsed string.
Link: http://lkml.kernel.org/r/1516093350-12045-4-git-send-email-changbin.du@intel.com
Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/acct.c')
0 files changed, 0 insertions, 0 deletions