From: Mark Jansen Date: Wed, 13 Jul 2016 18:33:42 +0000 (+0000) Subject: [RAPPS_NEW] Use the actual buffer size instead of hardcoding a random number. CID... X-Git-Tag: ReactOS-0.4.2~83 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=b53f38a463e6261155375c11c980c8c303985e42 [RAPPS_NEW] Use the actual buffer size instead of hardcoding a random number. CID 1363551 svn path=/trunk/; revision=71933 --- diff --git a/reactos/base/applications/rapps_new/available.cpp b/reactos/base/applications/rapps_new/available.cpp index 0a6e498714e..ff789a11439 100644 --- a/reactos/base/applications/rapps_new/available.cpp +++ b/reactos/base/applications/rapps_new/available.cpp @@ -18,11 +18,11 @@ } \ #define GET_STRING1(a, b) \ - if (!ParserGetString(a, b, MAX_PATH, FindFileData.cFileName)) \ + if (!ParserGetString(a, b, _countof(b), FindFileData.cFileName)) \ continue; #define GET_STRING2(a, b) \ - if (!ParserGetString(a, b, MAX_PATH, FindFileData.cFileName)) \ + if (!ParserGetString(a, b, _countof(b), FindFileData.cFileName)) \ b[0] = '\0'; LIST_ENTRY CachedEntriesHead = { &CachedEntriesHead, &CachedEntriesHead };