From ed7f580e5498a4c4957d4a766465b20c045d9c7a Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 21 Feb 2018 07:54:38 +0000 Subject: [PATCH] changed the wrong field name when HCL_OOCH_IS_BCH --- lib/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/main.c b/lib/main.c index 94bc30f..bf95d70 100644 --- a/lib/main.c +++ b/lib/main.c @@ -405,7 +405,7 @@ static HCL_INLINE hcl_ooi_t write_output (hcl_t* hcl, hcl_iooutarg_t* arg) ucslen = arg->len - donelen; if (ucslen > bcslen) ucslen = bcslen; else if (ucslen < bcslen) bcslen = ucslen; - hcl_copybchars (&arg->buf[donelen], bcsbuf, bcslen); + hcl_copybchars (&arg->ptr[donelen], bcsbuf, bcslen); #endif if (fwrite (bcsbuf, HCL_SIZEOF(bcsbuf[0]), bcslen, (FILE*)arg->handle) < bcslen)