We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 777334e commit 38cfbe7Copy full SHA for 38cfbe7
src/utils/path.c
@@ -119,7 +119,7 @@ const char *path_c(const path *path) {
119
bool path_resolve(path *p) {
120
#if defined(_WIN32) || defined(WIN32)
121
path tmp;
122
- DWORD ret = GetFullPathNameA(p->buf, strlen(p->buf), tmp.buf, NULL);
+ DWORD ret = GetFullPathNameA(p->buf, sizeof(p->buf), tmp.buf, NULL);
123
if(ret > 0 && ret < PATH_MAX_LENGTH) {
124
*p = tmp;
125
normalize_slashes(p);
0 commit comments