From 7afe31370ef9d95ca652077c98cf225fff66068c Mon Sep 17 00:00:00 2001 From: systemcoder Date: Thu, 26 Mar 2020 20:32:28 +0000 Subject: Feature complete version of project --- H64E-2/h64e.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'H64E-2/h64e.c') 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 } -- cgit v1.2.3