Explorar el Código

using standard compliant swprintf

master
FelixBrendel hace 6 años
padre
commit
e660884e49
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      src/built_ins.cpp

+ 2
- 2
src/built_ins.cpp Ver fichero

@@ -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';


Cargando…
Cancelar
Guardar