diff --git a/stb.h b/stb.h index d78c465390389e003b88137728925dd5d3b8473c..671ffcd3c17a1ae752e360e79eb9fdcf78e316bd 100644 --- a/stb.h +++ b/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);