strdup the application name.

This commit is contained in:
Joris Vink 2020-09-09 22:30:56 +02:00
parent cdb45118e2
commit 51e9c64fc0
1 changed files with 1 additions and 1 deletions

View File

@ -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;