aboutsummaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2026-10-30 11:31:16 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2026-10-30 11:31:16 +0100
commit1563572d1de565ebbe8b8d4eaf9f538f9b68f355 (patch)
tree0a01bf7a8bec211c4c7354ef43f77205f93e248e /util.c
parentf08763b74e32d83dd5d706ce2090b235ed518a89 (diff)
replace strncpy with snprintf()HEADmaster
Using snprintf() like this is similar to using strlcpy(). Truncation is silently ignored, which is fine here. strncpy also pads the buffer with zeroes, which is not necesary here.
Diffstat (limited to 'util.c')
0 files changed, 0 insertions, 0 deletions