From 51e9c64fc016d229b7b913c3c9b0cbab936aea00 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Wed, 9 Sep 2020 22:30:56 +0200 Subject: [PATCH] strdup the application name. --- src/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.c b/src/cli.c index 83f3f1e..92a60e4 100644 --- a/src/cli.c +++ b/src/cli.c @@ -611,7 +611,7 @@ cli_build(int argc, char **argv) if (getcwd(pwd, sizeof(pwd)) == NULL) fatal("could not get cwd: %s", errno_s); - appl = basename(pwd); + appl = cli_strdup(basename(pwd)); if ((p = getenv("CC")) != NULL) { compiler_c = p;