Skip to content

Commit 6888cc1

Browse files
committed
Fixed compile issues on Linux
1 parent 3dba4b8 commit 6888cc1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

engine/src/srvposix.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,14 +524,14 @@ struct MCPosixSystem: public MCSystemInterface
524524
else
525525
t_tilde_path = strdup(p_path);
526526
}
527-
else if (path[0] != '/')
527+
else if (p_path[0] != '/')
528528
{
529529
// SN-2015-06-05: [[ Bug 15432 ]] Fix resolvepath on Linux: we want an
530530
// absolute path.
531531
char *t_curfolder;
532532
t_curfolder = MCS_getcurdir();
533-
tildepath = new char[strlen(t_curfolder) + strlen(path) + 2];
534-
/* UNCHECKED */ sprintf(tildepath, "%s/%s", t_curfolder, path);
533+
t_tilde_path = new char[strlen(t_curfolder) + strlen(p_path) + 2];
534+
/* UNCHECKED */ sprintf(t_tilde_path, "%s/%s", t_curfolder, p_path);
535535

536536
delete t_curfolder;
537537
}

0 commit comments

Comments
 (0)