pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/36719?usp=email )


Change subject: Misc_Helpers: f_str_split(): Fix parse with len(delimiter) > 1
......................................................................

Misc_Helpers: f_str_split(): Fix parse with len(delimiter) > 1

Change-Id: I1ac53635deea82a501f2a8c7a94faf501ddf7afd
---
M library/Misc_Helpers.ttcn
1 file changed, 10 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/19/36719/1

diff --git a/library/Misc_Helpers.ttcn b/library/Misc_Helpers.ttcn
index fd2e7bb..805254a 100644
--- a/library/Misc_Helpers.ttcn
+++ b/library/Misc_Helpers.ttcn
@@ -94,7 +94,7 @@
                if (delim_pos > pos) {
                        parts := parts & { substr(str, pos, delim_pos - pos) };
                }
-               pos := delim_pos + 1;
+               pos := delim_pos + lengthof(delim);
        }
        return parts;
 }

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/36719?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I1ac53635deea82a501f2a8c7a94faf501ddf7afd
Gerrit-Change-Number: 36719
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-MessageType: newchange

Reply via email to