about summary refs log tree commit diff stats
path: root/src/librarian/library.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/librarian/library.c')
-rwxr-xr-xsrc/librarian/library.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librarian/library.c b/src/librarian/library.c
index 951407a9..7baceeca 100755
--- a/src/librarian/library.c
+++ b/src/librarian/library.c
@@ -289,7 +289,7 @@ static int loadEmulatedLib(const char* libname, library_t *lib, box64context_t*
 
         if(lib->path && strcmp(lib->path, libname)) {
             box_free(lib->path);
-            lib->path = realpath(libname, NULL);
+            lib->path = box_realpath(libname, NULL);
             if(!lib->path)
                 lib->path = box_strdup(libname);
         }
@@ -349,7 +349,7 @@ library_t *NewLibrary(const char* path, box64context_t* context)
 {
     printf_log(LOG_DEBUG, "Trying to load \"%s\"\n", path);
     library_t *lib = (library_t*)box_calloc(1, sizeof(library_t));
-    lib->path = realpath(path, NULL);
+    lib->path = box_realpath(path, NULL);
     if(!lib->path)
         lib->path = box_strdup(path);
     if(libGL && !strcmp(path, libGL))
@@ -595,7 +595,7 @@ int IsSameLib(library_t* lib, const char* path)
             ret=1;
     } else {
         char rpath[PATH_MAX];
-        realpath(path, rpath);
+        box_realpath(path, rpath);
         if(!strcmp(rpath, lib->path))
             ret=1;
     }