|
|
|
@@ -71,10 +71,10 @@ namespace Slime { |
|
|
|
proc built_in_load(String file_name) -> Lisp_Object* { |
|
|
|
profile_with_comment(file_name.data); |
|
|
|
char* file_content; |
|
|
|
path_char fullpath[MAX_PATH]; |
|
|
|
path_char fullpath[max_path_len]; |
|
|
|
#ifdef UNICODE |
|
|
|
path_char* temp = char_to_path_char(Memory::get_c_str(file_name)); |
|
|
|
swprintf(fullpath, MAX_PATH,L"%s", temp); |
|
|
|
swprintf(fullpath, max_path_len,L"%s", temp); |
|
|
|
file_content = read_entire_file(temp); |
|
|
|
free(temp); |
|
|
|
#else |
|
|
|
@@ -89,7 +89,7 @@ namespace Slime { |
|
|
|
#ifdef UNICODE |
|
|
|
fullpath[0] = L'\0'; |
|
|
|
path_char* temp = char_to_path_char(Memory::get_c_str(file_name)); |
|
|
|
swprintf(fullpath, MAX_PATH, L"%s%s", it, temp); |
|
|
|
swprintf(fullpath, max_path_leno, L"%s%s", it, temp); |
|
|
|
free(temp); |
|
|
|
#else |
|
|
|
fullpath[0] = '\0'; |
|
|
|
|