diff options
author | Andy Shevchenko <[email protected]> | 2023-08-04 17:39:07 +0300 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2023-08-04 18:21:50 -0700 |
commit | 045ad46441a1cf2ff358af0126f8c57f337804fa (patch) | |
tree | 0d8745d448f22648486c123c18e055aef20be105 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 (diff) |
lib/string_helpers: Add kstrdup_and_replace() helper
Duplicate a NULL-terminated string and replace all occurrences of
the old character with a new one. In other words, provide functionality
of kstrdup() + strreplace().
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions