From: Kevin Day Date: Tue, 5 May 2020 04:48:08 +0000 (-0500) Subject: Bugfix: start position not being calculated fo fl_string functions X-Git-Tag: 0.5.0~288 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=408b78f8655382718f74276ee5389f9f1aefcb23;p=fll Bugfix: start position not being calculated fo fl_string functions I missed adding the start position. --- 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; } }