提交 b53c08a1 编写于 作者: S Sean Barrett

Merge pull request #127 from mikesart/master

Fix relative path check for non-Windows platforms in stb_fullpath.
...@@ -5255,7 +5255,7 @@ int stb_fullpath(char *abs, int abs_size, char *rel) ...@@ -5255,7 +5255,7 @@ int stb_fullpath(char *abs, int abs_size, char *rel)
#ifdef _MSC_VER #ifdef _MSC_VER
return _fullpath(abs, rel, abs_size) != NULL; return _fullpath(abs, rel, abs_size) != NULL;
#else #else
if (abs[0] == '/' || abs[0] == '~') { if (rel[0] == '/' || rel[0] == '~') {
if ((int) strlen(rel) >= abs_size) if ((int) strlen(rel) >= abs_size)
return 0; return 0;
strcpy(abs,rel); strcpy(abs,rel);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册