- Timestamp:
- 12/07/09 12:01:22 (15 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/reglookup-recover.c
r160 r161 127 127 /* XXX: Add command line option to choose output encoding */ 128 128 if(vk->data != NULL 129 && !regfi_interpret_data(f, "US-ASCII//TRANSLIT", vk->type, vk->data))129 && !regfi_interpret_data(f, REGFI_ENCODING_ASCII, vk->type, vk->data)) 130 130 { 131 131 fprintf(stderr, "WARN: Error occurred while interpreting data for VK record" … … 271 271 else 272 272 { 273 if(cur_ancestor-> key_type& REGFI_NK_FLAG_ROOT)273 if(cur_ancestor->flags & REGFI_NK_FLAG_ROOT) 274 274 virt_offset = REGFI_OFFSET_NONE; 275 275 else -
trunk/src/reglookup.c
r160 r161 191 191 { 192 192 const REGFI_ITER_POSITION* cur; 193 const REGFI_NK_REC* tmp_key; 193 194 uint32 buf_left = 127; 194 195 uint32 buf_len = buf_left+1; … … 198 199 char* new_buf; 199 200 char* name; 200 const char* cur_name;201 201 void_stack_iterator* iter; 202 202 … … 226 226 cur = void_stack_iterator_next(iter); 227 227 if (cur == NULL) 228 cur_name = i->cur_key->keyname; 229 else 230 cur_name = cur->nk->keyname; 228 tmp_key = i->cur_key; 229 else 230 tmp_key = cur->nk; 231 232 if(tmp_key->keyname == NULL) 233 name = quote_buffer(i->cur_key->keyname_raw, i->cur_key->name_length, 234 key_special_chars); 235 else 236 name = quote_string(tmp_key->keyname, key_special_chars); 231 237 232 238 buf[buf_len-buf_left-1] = '/'; 233 239 buf_left -= 1; 234 name = quote_string(cur_name, key_special_chars);235 240 name_len = strlen(name); 236 241 if(name_len+1 > buf_left) … … 617 622 618 623 /* XXX: add command line option to choose output encoding */ 619 iter = regfi_iterator_new(f, 0);624 iter = regfi_iterator_new(f, REGFI_ENCODING_ASCII); 620 625 if(iter == NULL) 621 626 {
Note: See TracChangeset
for help on using the changeset viewer.