diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-09-26 12:48:21 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-09-26 12:48:21 -0400 |
commit | dccb52556730ff060bcccbe764cef4b13b3d5712 (patch) | |
tree | ce71c0bb7a21f6511be8d45af19f722cf46c00ee /src/exec.c | |
parent | 8864dc5d1b9c85daa58e98c04767d2ee528f2dea (diff) | |
download | bfs-dccb52556730ff060bcccbe764cef4b13b3d5712.tar.xz |
dstring: New dchar typedef for dynamic strings
Diffstat (limited to 'src/exec.c')
-rw-r--r-- | src/exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -227,7 +227,7 @@ static char *bfs_exec_format_arg(char *arg, const char *path) { return arg; } - char *ret = dstralloc(0); + dchar *ret = dstralloc(0); if (!ret) { return NULL; } @@ -259,7 +259,7 @@ err: /** Free a formatted argument. */ static void bfs_exec_free_arg(char *arg, const char *tmpl) { if (arg != tmpl) { - dstrfree(arg); + dstrfree((dchar *)arg); } } |