summaryrefslogtreecommitdiff
path: root/tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorKaushlendra Kumar <kaushlendra.kumar@intel.com>2025-11-27 10:15:36 +0530
committerShuah Khan <skhan@linuxfoundation.org>2025-12-15 12:33:28 -0700
commit1b9aaf36b7b40235e5a529c15848c3d866362207 (patch)
treeb1e4f17591accf422b3274421dc753c79e6d8ce9 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
parent24858a84163c8d04827166b3bcaed80612bb62fc (diff)
tools/cpupower: Use strcspn() to strip trailing newline
Replace manual newline removal with strcspn() which is safer and cleaner. This avoids potential out-of-bounds access on empty strings and handles the case where no newline exists. Link: https://lore.kernel.org/r/20251127044536.715722-1-kaushlendra.kumar@intel.com Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions