]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: replace strncpy() with memcpy_and_pad in journal_transaction_name
authorRoxana Nicolescu <nicolescu.roxana@protonmail.com>
Thu, 27 Mar 2025 14:50:05 +0000 (14:50 +0000)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:13:24 +0000 (20:13 -0400)
commit4e2caf82ce958d1fae96a6d6ba23ea9e80c597b4
treeb10118ed557a0c0ee19baf354ea6217c22ff1851
parent8c087d2ddf5d4d8c07bec96531a5f5629066cd00
bcachefs: replace strncpy() with memcpy_and_pad in journal_transaction_name

Strncpy is now deprecated.
The buffer destination is not required to be NULL-terminated, but we also
want to zero out the rest of the buffer as it is already done in other
places.

Link: https://github.com/KSPP/linux/issues/90
Signed-off-by: Roxana Nicolescu <nicolescu.roxana@protonmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_trans_commit.c