strdup name confusing

This commit is contained in:
iceman1001
2020-01-05 22:24:24 +01:00
parent eb4573b06c
commit 719fcf91ab
3 changed files with 8 additions and 8 deletions

View File

@@ -169,7 +169,7 @@ check_script:
// remove linebreaks
strcleanrn(script_cmd_buf, sizeof(script_cmd_buf));
cmd = strdup(script_cmd_buf);
cmd = str_dup(script_cmd_buf);
if (cmd != NULL)
printprompt = true;
}
@@ -177,7 +177,7 @@ check_script:
// If there is a script command
if (execCommand) {
cmd = strdup(script_cmd);
cmd = str_dup(script_cmd);
if (cmd != NULL)
printprompt = true;
@@ -206,7 +206,7 @@ check_script:
// remove linebreaks
strcleanrn(script_cmd_buf, sizeof(script_cmd_buf));
cmd = strdup(script_cmd_buf);
cmd = str_dup(script_cmd_buf);
if (cmd != NULL)
printprompt = true;