Changeset 865 in kBuild
- Timestamp:
- Mar 30, 2007 1:52:19 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/kDep.c
r785 r865 99 99 printf("my_assert: %s, file %s, line %d\npszPath=%s\npsz=%s\n", \ 100 100 #expr, __FILE__, __LINE__, pszPath, psz); \ 101 __ asm { __asm int 3 }\101 __debugbreak(); \ 102 102 exit(1); \ 103 103 } \ … … 160 160 char chSaved1; 161 161 char *pszEnd; 162 int cch;162 size_t cch; 163 163 int iLongNameDiff; 164 164 … … 185 185 } 186 186 pszEnd[0] = '\0'; 187 while ( (iLongNameDiff = stricmp(FindFileData.cFileName, psz))188 && stricmp(FindFileData.cAlternateFileName, psz))187 while ( (iLongNameDiff = _stricmp(FindFileData.cFileName, psz)) 188 && _stricmp(FindFileData.cAlternateFileName, psz)) 189 189 { 190 190 if (!FindNextFile(hDir, &FindFileData)) … … 200 200 { 201 201 /* replace spacy name with the short name. */ 202 const int cchAlt = strlen(FindFileData.cAlternateFileName);203 const int cchDelta = cch - cchAlt;202 const size_t cchAlt = strlen(FindFileData.cAlternateFileName); 203 const size_t cchDelta = cch - cchAlt; 204 204 my_assert(cchAlt > 0); 205 205 if (!cchDelta) 206 206 memcpy(psz, FindFileData.cAlternateFileName, cch); 207 207 else 208 { int cbLeft = strlen(pszEnd) + 1; 208 { 209 size_t cbLeft = strlen(pszEnd) + 1; 209 210 if ((psz - pszPath) + cbLeft + cchAlt <= _MAX_PATH) 210 211 {
Note:
See TracChangeset
for help on using the changeset viewer.