summaryrefslogtreecommitdiffstats
path: root/src/exec.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-06-18 13:24:19 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-06-18 13:29:55 -0400
commitcb385e7c80a2926ac9c9fe50e5e0c60665fb022c (patch)
tree79b373765b592cea56eb2822ed01b2b52ba6e3f1 /src/exec.c
parent16a666d3767c7db5c2e352c02f09aedca723d2a1 (diff)
downloadbfs-cb385e7c80a2926ac9c9fe50e5e0c60665fb022c.tar.xz
Use dstrx*() over dstrn*() when we know the exact length
Diffstat (limited to 'src/exec.c')
-rw-r--r--src/exec.c2
1 files changed, 1 insertions, 1 deletions
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) {