Skip to content

Commit 38cfbe7

Browse files
committed
Fix path_resolve on Windows
1 parent 777334e commit 38cfbe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/path.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const char *path_c(const path *path) {
119119
bool path_resolve(path *p) {
120120
#if defined(_WIN32) || defined(WIN32)
121121
path tmp;
122-
DWORD ret = GetFullPathNameA(p->buf, strlen(p->buf), tmp.buf, NULL);
122+
DWORD ret = GetFullPathNameA(p->buf, sizeof(p->buf), tmp.buf, NULL);
123123
if(ret > 0 && ret < PATH_MAX_LENGTH) {
124124
*p = tmp;
125125
normalize_slashes(p);

0 commit comments

Comments
 (0)