aboutsummaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
authorShaoxiong Li <dahefanteng@gmail.com>2025-06-24 20:19:40 +0800
committerColy Li <colyli@kernel.org>2025-06-24 20:29:55 +0800
commit506da7aba97ab8996a451f47a0e69228c8d79889 (patch)
treec5d55dec03c99acda78559c4d24f0527632aae6b /lib.c
parenta5e3753516bd39c431def86c8dfec8a9cea1ddd4 (diff)
downloadbcache-tools-master.tar.gz
bcache-tools: fix strncpy compiler warning in replace_line()HEADmaster
The strncpy() call in replace_line() was using strlen(src) as the size parameter instead of the destination buffer size, causing a compiler warning about potential string truncation. use snprintf() instead. Signed-off-by: Shaoxiong Li <dahefanteng@gmail.com> Signed-off-by: Coly Li <colyli@kernel.org>
Diffstat (limited to 'lib.c')
0 files changed, 0 insertions, 0 deletions