]> Kevux Git Server - fll/commitdiff
Bugfix: FSS Extended Write is improperly associated Content with its respective Object. 0.6.9
authorKevin Day <kevin@kevux.org>
Sun, 3 Mar 2024 23:08:45 +0000 (17:08 -0600)
committerKevin Day <kevin@kevux.org>
Sun, 3 Mar 2024 23:12:38 +0000 (17:12 -0600)
The following is an example of the bad behavior:
  # fss_extended_write -oc A B -oc C D -oc E F
  A B D
  C F
  E

The expected behavior instead should be:
  # fss_extended_write -oc A B -oc C D -oc E F
  A B
  C D
  E F

The problem is that when "-oc" is used for the next set that object and content parameter have the same parameter index position.
The operator for testing for this should therefore be ">=" rather than ">".

level_3/fss_extended_write/c/fss_extended_write.c

index debbec7483b6498b50a9d4e550e93b7923af9098..f3fdd82d413223e40ce2c57c68dda3746c6892b2 100644 (file)
@@ -539,7 +539,7 @@ extern "C" {
               content_current = main->parameters.array[fss_extended_write_parameter_content_e].locations.array[j];
 
               if (i + 1 < main->parameters.array[fss_extended_write_parameter_object_e].values.used) {
-                if (content_current < object_current || content_current > object_next) break;
+                if (content_current < object_current || content_current >= object_next) break;
               }
 
               status = f_string_dynamics_increase_by(F_fss_default_allocation_step_d, &contents);