Changeset 140 for branches/samba-3.0/source/lib
- Timestamp:
- Jul 11, 2008, 1:13:42 AM (17 years ago)
- Location:
- branches/samba-3.0/source/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/lib/replace/replace.c
r30 r140 85 85 86 86 if (len1+len2 >= bufsize) { 87 if (bufsize < (len1+1)) { 88 return ret; 89 } 87 90 len2 = bufsize - (len1+1); 88 91 } -
branches/samba-3.0/source/lib/system.c
r124 r140 825 825 /* Linux has CAP_MKNOD for DMAPI access. */ 826 826 cap_vals[num_cap_vals++] = CAP_MKNOD; 827 #endif 828 break; 829 case LEASE_CAPABILITY: 830 #ifdef CAP_LEASE 831 cap_vals[num_cap_vals++] = CAP_LEASE; 827 832 #endif 828 833 break; -
branches/samba-3.0/source/lib/time.c
r44 r140 1213 1213 /* d is now in 100ns units, since jan 1st 1601". 1214 1214 Save off the ns fraction. */ 1215 1216 ret.tv_nsec = (long) ((d % 100) * 100); 1215 1216 /* 1217 * Take the last seven decimal digits and multiply by 100. 1218 * to convert from 100ns units to 1ns units. 1219 */ 1220 ret.tv_nsec = (long) ((d % (1000 * 1000 * 10)) * 100); 1217 1221 1218 1222 /* Convert to seconds */ -
branches/samba-3.0/source/lib/util_str.c
r134 r140 2309 2309 out_cnt = 0; 2310 2310 len = data.length; 2311 output_len = data.length * 2; 2311 output_len = data.length * 2 + 4; /* Account for closing bytes. 4 is 2312 * random but should be enough for 2313 * the = and \0 */ 2312 2314 result = (char *)SMB_MALLOC(output_len); /* get us plenty of space */ 2313 2315
Note:
See TracChangeset
for help on using the changeset viewer.