diff options
| author | Kaushlendra Kumar <kaushlendra.kumar@intel.com> | 2025-11-27 10:15:36 +0530 |
|---|---|---|
| committer | Shuah Khan <skhan@linuxfoundation.org> | 2025-12-15 12:33:28 -0700 |
| commit | 1b9aaf36b7b40235e5a529c15848c3d866362207 (patch) | |
| tree | b1e4f17591accf422b3274421dc753c79e6d8ce9 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | 24858a84163c8d04827166b3bcaed80612bb62fc (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
