Change in ...osmo-ttcn3-hacks[master]: library/PCUIF_Types.ttcn: mark PCUIF_Text as 'null_terminated'

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Mon Sep 9 00:55:19 UTC 2019


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15447


Change subject: library/PCUIF_Types.ttcn: mark PCUIF_Text as 'null_terminated'
......................................................................

library/PCUIF_Types.ttcn: mark PCUIF_Text as 'null_terminated'

This is a TITAN specific attribute that allows to indicate that
a field of type 'charstring' is '\0'-terminated. Without that
attribute, 'PCUIF_Text' is mixed with the padding characters:

  "0.7.0.5-df0f" & char(0, 0, 0, 0) & char(0, 0, 0, 0) & ...

Change-Id: Ic81fff4c82871bb29a2385b9ee7a2dd98f67dfb0
---
M library/PCUIF_Types.ttcn
1 file changed, 1 insertion(+), 1 deletion(-)



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

diff --git a/library/PCUIF_Types.ttcn b/library/PCUIF_Types.ttcn
index 721eb64..ce745b5 100644
--- a/library/PCUIF_Types.ttcn
+++ b/library/PCUIF_Types.ttcn
@@ -70,7 +70,7 @@
 	PCU_OML_ALERT			(1)
 } with { variant "FIELDLENGTH(8)" };
 
-type charstring PCUIF_Text length(128) with { variant "FIELDLENGTH(128)" };
+type charstring PCUIF_Text length(128) with { variant "FIELDLENGTH(null_terminated)" };
 
 type record PCUIF_txt_ind {
 	PCUIF_TextType	txt_type,

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15447
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: Ic81fff4c82871bb29a2385b9ee7a2dd98f67dfb0
Gerrit-Change-Number: 15447
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190909/8e017437/attachment.htm>


More information about the gerrit-log mailing list