small changes

This commit is contained in:
Vítor Santos Costa
2016-02-13 03:11:25 +00:00
parent 994c5d0dfd
commit 9860b6244f
14 changed files with 179 additions and 95 deletions

View File

@@ -1333,7 +1333,7 @@ static Int p_statistics_lu_db_size(USES_REGS1) {
static Int p_executable(USES_REGS1) {
if (GLOBAL_argv && GLOBAL_argv[0])
Yap_TrueFileName(GLOBAL_argv[0], LOCAL_FileNameBuf, FALSE);
Yap_locateFile(GLOBAL_argv[0], LOCAL_FileNameBuf, FALSE);
else
strncpy(LOCAL_FileNameBuf, Yap_FindExecutable(), YAP_FILENAME_MAX - 1);