Changeset 57918 in vbox
- Timestamp:
- Sep 27, 2015 11:37:26 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/process-posix.cpp
r57916 r57918 173 173 */ 174 174 int32_t cbPwdMax = sysconf(_SC_GETPW_R_SIZE_MAX); 175 if (cbPwdMax <= sizeof(_1K))175 if (cbPwdMax <= _1K) 176 176 cbPwdMax = _1K; 177 177 else 178 AssertStmt(cbPwdMax <= 32 U*_1M, cbPwdMax = 32U*_1M);178 AssertStmt(cbPwdMax <= 32*_1M, cbPwdMax = 32*_1M); 179 179 char *pchBuf = (char *)RTMemTmpAllocZ(cbPwdMax); 180 if (p bBuf)180 if (pchBuf) 181 181 { 182 182 /* … … 201 201 if (pcbUser) 202 202 *pcbUser = cbTmp; 203 if (cb PwdUser<= cbUser)203 if (cbTmp <= cbUser) 204 204 { 205 205 memcpy(pszUser, pszTmp, cbTmp); … … 236 236 */ 237 237 int32_t cbPwdMax = sysconf(_SC_GETPW_R_SIZE_MAX); 238 if (cbPwdMax <= sizeof(_1K))238 if (cbPwdMax <= _1K) 239 239 cbPwdMax = _1K; 240 240 else 241 AssertStmt(cbPwdMax <= 32 U*_1M, cbPwdMax = 32U*_1M);241 AssertStmt(cbPwdMax <= 32*_1M, cbPwdMax = 32*_1M); 242 242 char *pchBuf = (char *)RTMemTmpAllocZ(cbPwdMax); 243 if (p bBuf)243 if (pchBuf) 244 244 { 245 245 /*
Note:
See TracChangeset
for help on using the changeset viewer.