소스 검색

using standard compliant swprintf

master
FelixBrendel 6 년 전
부모
커밋
e660884e49
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      src/built_ins.cpp

+ 2
- 2
src/built_ins.cpp 파일 보기

@@ -74,7 +74,7 @@ namespace Slime {
path_char fullpath[MAX_PATH];
#ifdef UNICODE
path_char* temp = char_to_path_char(Memory::get_c_str(file_name));
swprintf(fullpath, L"%s", temp);
swprintf(fullpath, MAX_PATH,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, L"%s%s", it, temp);
swprintf(fullpath, MAX_PATH, L"%s%s", it, temp);
free(temp);
#else
fullpath[0] = '\0';


불러오는 중...
취소
저장