diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-06-18 13:24:19 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-06-18 13:29:55 -0400 |
commit | cb385e7c80a2926ac9c9fe50e5e0c60665fb022c (patch) | |
tree | 79b373765b592cea56eb2822ed01b2b52ba6e3f1 /src/exec.c | |
parent | 16a666d3767c7db5c2e352c02f09aedca723d2a1 (diff) | |
download | bfs-cb385e7c80a2926ac9c9fe50e5e0c60665fb022c.tar.xz |
Use dstrx*() over dstrn*() when we know the exact length
Diffstat (limited to 'src/exec.c')
-rw-r--r-- | src/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |