diff --git a/api/boinc_api.cpp b/api/boinc_api.cpp index c9d301923b..6b58f1dfd2 100644 --- a/api/boinc_api.cpp +++ b/api/boinc_api.cpp @@ -1002,7 +1002,7 @@ struct GRAPHICS_APP { char* argv[4]; char abspath[MAXPATHLEN]; #ifdef _WIN32 - GetFullPathName(path, 1024, abspath, NULL); + GetFullPathName(path, MAXPATHLEN, abspath, NULL); #else strcpy(abspath, path); #endif