- Timestamp:
- Nov 27, 2023 3:19:39 PM (15 months ago)
- Location:
- trunk/src/libs/xpcom18a4/xpcom/ds
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/ds/nsCRT.cpp
r102325 r102326 249 249 PRUnichar* nsCRT::strndup(const PRUnichar* str, PRUint32 len) 250 250 { 251 PRUnichar* rslt = RTMemAlloc(sizeof(PRUnichar) * (len + 1)); // add one for the null251 PRUnichar* rslt = (PRUnichar *)RTMemAlloc(sizeof(PRUnichar) * (len + 1)); // add one for the null 252 252 253 253 if (rslt == NULL) return NULL; -
trunk/src/libs/xpcom18a4/xpcom/ds/nsCRT.h
r102325 r102326 44 44 #include <string.h> 45 45 #include <ctype.h> 46 #include "nsMemory.h" 46 47 #include "plstr.h" 47 48 #include "nscore.h" 48 49 #include "prtypes.h" 50 51 #ifdef HAVE_CPP_NUMERIC_LIMITS 52 #include <limits> 53 #else 54 #include <limits.h> 55 #endif 49 56 50 57 #ifdef XP_MAC
Note:
See TracChangeset
for help on using the changeset viewer.