From 408b78f8655382718f74276ee5389f9f1aefcb23 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Mon, 4 May 2020 23:48:08 -0500 Subject: [PATCH] Bugfix: start position not being calculated fo fl_string functions I missed adding the start position. --- level_1/fl_string/c/private-string.c | 4 ++-- level_1/fl_utf/c/private-utf.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/level_1/fl_string/c/private-string.c b/level_1/fl_string/c/private-string.c index 2b62f19..3643126 100644 --- a/level_1/fl_string/c/private-string.c +++ b/level_1/fl_string/c/private-string.c @@ -53,7 +53,7 @@ extern "C" { if (f_status_is_error(status)) return status; } - memcpy(destination->string + destination->used, source + first, length); + memcpy(destination->string + destination->used, source + start + first, length); destination->used = total; } @@ -74,7 +74,7 @@ extern "C" { if (f_status_is_error(status)) return status; } - memcpy(destination->string + destination->used, source + first, length); + memcpy(destination->string + destination->used, source + start + first, length); destination->used = total; } } diff --git a/level_1/fl_utf/c/private-utf.c b/level_1/fl_utf/c/private-utf.c index 48b10ec..d324f88 100644 --- a/level_1/fl_utf/c/private-utf.c +++ b/level_1/fl_utf/c/private-utf.c @@ -53,7 +53,7 @@ extern "C" { if (f_status_is_error(status)) return status; } - memcpy(destination->string + destination->used, source + first, length); + memcpy(destination->string + destination->used, source + start + first, length); destination->used = total; } @@ -74,7 +74,7 @@ extern "C" { if (f_status_is_error(status)) return status; } - memcpy(destination->string + destination->used, source + first, length); + memcpy(destination->string + destination->used, source + start + first, length); destination->used = total; } } -- 1.8.3.1