From cb385e7c80a2926ac9c9fe50e5e0c60665fb022c Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 18 Jun 2024 13:24:19 -0400 Subject: Use dstrx*() over dstrn*() when we know the exact length --- src/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/exec.c') diff --git a/src/exec.c b/src/exec.c index cd73d6c..2faa731 100644 --- a/src/exec.c +++ b/src/exec.c @@ -234,7 +234,7 @@ static char *bfs_exec_format_arg(char *arg, const char *path) { char *last = arg; do { - if (dstrncat(&ret, last, match - last) != 0) { + if (dstrxcat(&ret, last, match - last) != 0) { goto err; } if (dstrcat(&ret, path) != 0) { -- cgit v1.2.3