]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/os-genunix.cpp
removed some vm-> pointers
[factor.git] / vm / os-genunix.cpp
index 29c3e79859dbada3061adc2cc053b200a22408e5..9e7804caf09656e9fecd2e0ea3736179a2636c84 100644 (file)
@@ -31,7 +31,7 @@ const char *default_image_path()
        const char *iter = path;
        while(*iter) { len++; iter++; }
 
-       char *new_path = (char *)safe_malloc(PATH_MAX + SUFFIX_LEN + 1);
+       char *new_path = (char *)vm->safe_malloc(PATH_MAX + SUFFIX_LEN + 1);
        memcpy(new_path,path,len + 1);
        memcpy(new_path + len,SUFFIX,SUFFIX_LEN + 1);
        return new_path;