diff options
author | systemcoder <systemcoder@protonmail.com> | 2020-03-26 20:32:28 +0000 |
---|---|---|
committer | systemcoder <systemcoder@protonmail.com> | 2020-03-26 20:32:28 +0000 |
commit | 7afe31370ef9d95ca652077c98cf225fff66068c (patch) | |
tree | 793e133e6a6266031e114bddaf13dc8ea5333c04 /H64E-2/h64e.c | |
parent | ccb315e805e135ab896a02161e8bc0c96bb104a0 (diff) | |
download | H64D-2-7afe31370ef9d95ca652077c98cf225fff66068c.tar.gz H64D-2-7afe31370ef9d95ca652077c98cf225fff66068c.zip |
Diffstat (limited to 'H64E-2/h64e.c')
-rw-r--r-- | H64E-2/h64e.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/H64E-2/h64e.c b/H64E-2/h64e.c index 39884ca..ad8957e 100644 --- a/H64E-2/h64e.c +++ b/H64E-2/h64e.c @@ -95,7 +95,7 @@ int h64e_destroy(H64E_t *s) int h64e_fmt_init( H64E_format *fs) { memset(fs,0,sizeof(H64E_format)); - + fs->length = -1; return 0; } @@ -222,10 +222,10 @@ int h64e_fmt_byte_align16(H64E_format *fs, uint8_t *in_data, int32_t in_size, ui int trail_size=0; //set offset to output - if (fs->f_offset) + if (fs->f_show_offset) { //printf("Print offset\n"); - int offset = fs->start_offset + fs->total_output; + int offset = fs->offset_addr + fs->total_output; buf_offset_sz = snprintf((char *)&buf_offset[0], BUF_SZ, "%08x: ",offset); //make it wider } @@ -502,7 +502,7 @@ int h64e_fmt_align( H64E_format *fs, uint8_t *in_data, int32_t in_size, uint8_t if (fs->f_offset) { //printf("Print offset\n"); - int offset = fs->start_offset + fs->total_output; + int offset = fs->offset_addr + fs->total_output; buf_offset_sz = snprintf((char *)&buf_offset[0], BUF_SZ, "%08x: ",offset); //make it wider } |