]> Kevux Git Server - fll/commitdiff
Regression: The variable buffer.range should be buffer.used.
authorKevin Day <kevin@kevux.org>
Wed, 29 Mar 2023 03:44:00 +0000 (22:44 -0500)
committerKevin Day <kevin@kevux.org>
Wed, 29 Mar 2023 03:44:00 +0000 (22:44 -0500)
This is introduced by the commit 5f1e938fcc9a54a8290c9afd0a1e58ec93971c52.

I must have been sleepier than I realized.
This is a dirt simple mistake.

level_1/fl_string/c/string.c

index 8e0ef3d22e53a5e803b0304bb18bb1f52242b3fb..92a1822be295ed85f7ef2d608cff732156446f38 100644 (file)
@@ -316,7 +316,7 @@ extern "C" {
     } // while
 
     if (range->start > range->stop) return F_none_stop;
-    if (range->start > buffer.range) return F_none_eos;
+    if (range->start > buffer.used) return F_none_eos;
 
     return F_none_eos;
   }