Explorar el Código

Merge pull request #127 from mikesart/master

Fix relative path check for non-Windows platforms in stb_fullpath.
Sean Barrett hace 10 años
padre
commit
b53c08a148
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      stb.h

+ 1 - 1
stb.h

@@ -5255,7 +5255,7 @@ int stb_fullpath(char *abs, int abs_size, char *rel)
    #ifdef _MSC_VER
    return _fullpath(abs, rel, abs_size) != NULL;
    #else
-   if (abs[0] == '/' || abs[0] == '~') {
+   if (rel[0] == '/' || rel[0] == '~') {
       if ((int) strlen(rel) >= abs_size)
          return 0;
       strcpy(abs,rel);