vbox的更動 36579 路徑 trunk/src/VBox/Runtime/generic
- 時間撮記:
- 2011-4-6 下午01:45:19 (14 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Runtime/generic/RTDirCreateUniqueNumbered-generic.cpp
r36577 r36579 37 37 #include <iprt/string.h> 38 38 39 RTDECL(int) RTDirCreateUniqueNumbered(char *pszPath, size_t cbSize, RTFMODE fMode, si ze_t cchDigits, char chSep)39 RTDECL(int) RTDirCreateUniqueNumbered(char *pszPath, size_t cbSize, RTFMODE fMode, signed int cchDigits, char chSep) 40 40 { 41 41 /* … … 47 47 /* Check for enough space. */ 48 48 char *pszEnd = strchr(pszPath, '\0'); 49 AssertReturn(cbSize - 1 - (pszEnd - pszPath) >= cchDigits + (chSep ? 1 : 0), VERR_BUFFER_OVERFLOW);49 AssertReturn(cbSize - 1 - (pszEnd - pszPath) >= (size_t)cchDigits + (chSep ? 1 : 0), VERR_BUFFER_OVERFLOW); 50 50 51 51 /* First try is to create the path without any numbers. */ … … 64 64 /* How many tries? */ 65 65 size_t cMaxTries = 10; 66 for (size_t i = 0; i < cchDigits - 1; ++i)66 for (size_t i = 0; i < (size_t)cchDigits - 1; ++i) 67 67 cMaxTries *= 10; 68 68
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器