- Timestamp:
- 06/03/09 11:21:47 (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/regfi.c
r152 r154 2396 2396 } 2397 2397 2398 if(chunk_length-4 > data_left) 2398 /* XXX: This should be "chunk_length-4" to account for the 4 byte cell 2399 * length. However, it has been observed that some (all?) chunks 2400 * have an additional 4 bytes of 0 at the end of their cells that 2401 * isn't part of the data, so we're trimming that off too. 2402 */ 2403 if(chunk_length-8 >= data_left) 2399 2404 read_length = data_left; 2400 2405 else 2401 read_length = chunk_length- 4;2406 read_length = chunk_length-8; 2402 2407 2403 2408 if(regfi_read(file->fd, ret_val.buf+(data_length-data_left), … … 2415 2420 data_left -= read_length; 2416 2421 } 2417 2418 2422 free(indirect_ptrs); 2419 2423 ret_val.len = data_length-data_left; 2424 2420 2425 return ret_val; 2421 2426 -
trunk/src/common.c
r143 r154 29 29 const char* common_special_chars = ",\"\\"; 30 30 31 #define REGLOOKUP_VERSION "0.1 0.0"31 #define REGLOOKUP_VERSION "0.11.0" 32 32 33 33 #define REGLOOKUP_EXIT_OK 0
Note: See TracChangeset
for help on using the changeset viewer.