From 3787e1c143715ccedd14e552c6ec7c895773f662 Mon Sep 17 00:00:00 2001 From: Michael Sartain Date: Tue, 9 Jun 2015 16:52:39 -0700 Subject: [PATCH] Fix relative path check for non-Windows platforms in stb_fullpath. --- stb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb.h b/stb.h index d78c465..671ffcd 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); -- GitLab