Changeset 90 for trunk/src/reglookup.c


Ignore:
Timestamp:
03/28/07 15:22:38 (17 years ago)
Author:
tim
Message:

minor changes to Makefiles

Added one warning on an unlikely condition in reglookup

Added the -H option to reglookup-timeline for ommiting the header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/reglookup.c

    r88 r90  
    546546    tmp_buf[3] = (uint8)(vk->data_off & 0xFF);
    547547    if(size > 4)
    548       /* XXX: should we kick out a warning here?  If it is in the
    549        *      offset and longer than four, file could be corrupt
    550        *      or malicious... */
     548    {
     549      fprintf(stderr, "WARNING: value stored in offset larger than 4. "
     550              "Truncating...\n");
    551551      size = 4;
     552    }
    552553    quoted_value = data_to_ascii(tmp_buf, 4, vk->type, &conv_error);
    553554  }
Note: See TracChangeset for help on using the changeset viewer.