From 8c0463a22a6525c8fd640e8fcffb597610de96d0 Mon Sep 17 00:00:00 2001 From: Evan Miller Date: Fri, 10 Apr 2015 16:43:50 -0400 Subject: [PATCH] SAS reader: another RLE fix --- src/readstat_sas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/readstat_sas.c b/src/readstat_sas.c index b684e625..7933f4fe 100644 --- a/src/readstat_sas.c +++ b/src/readstat_sas.c @@ -641,7 +641,7 @@ static readstat_error_t sas_parse_subheader_rle(const char *subheader, size_t le insert_byte = ' '; break; case SAS_RLE_COMMAND_INSERT_ZERO17: - insert_len = (*input++) + 17; + insert_len = (*input++) + 17 + length * 256; insert_byte = '\0'; break; case SAS_RLE_COMMAND_COPY1: copy_len = length + 1; break;