Changeset 90 for trunk/src


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

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Makefile

    r73 r90  
    1616
    1717install:
    18         cp -r $(FILES) $(BIN_PREFIX)
     18        install -m 0755 $(FILES) $(BIN_PREFIX)
    1919
    2020clean:
  • 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.