summaryrefslogtreecommitdiff
path: root/tools/workqueue/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorBrahmajit Das <listout@listout.xyz>2025-06-20 22:19:57 +0530
committerDavid Sterba <dsterba@suse.com>2025-07-22 00:05:00 +0200
commit164299ba117619643f6f042d487153d45a142999 (patch)
tree748a10a2aa1ccd6115e175d3097501abb27e2ad1 /tools/workqueue/git@git.tavy.me:linux.git
parentb37eb352c4c6ecd8e6aa62d08dbf3f5d3ce8afd7 (diff)
btrfs: replace strcpy() with strscpy()
strcpy() is discouraged from use due to lack of bounds checking. Replaces it with strscpy(), the recommended alternative for null terminated strings, to follow best practices. There are instances where strscpy() cannot be used such as where both the source and destination are character pointers. In that instance we can use sysfs_emit(). Link: https://github.com/KSPP/linux/issues/88 Suggested-by: Anthony Iliopoulos <ailiop@suse.com> Signed-off-by: Brahmajit Das <bdas@suse.de> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/workqueue/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions