Commit 82c4c57a authored by Alberto Ramos's avatar Alberto Ramos

Solves bug in length of BDIO character strings

parent b9c2bd4b
...@@ -1826,6 +1826,7 @@ CONTAINS ...@@ -1826,6 +1826,7 @@ CONTAINS
Read(ptf%ifn)newr%modified Read(ptf%ifn)newr%modified
if (.not.ptf%lendian) CALL ByteSwap(newr%modified) if (.not.ptf%lendian) CALL ByteSwap(newr%modified)
I=1 I=1
newr%cuser=''
Do Do
Read(ptf%ifn)ch Read(ptf%ifn)ch
If (ch == char(0)) Exit If (ch == char(0)) Exit
...@@ -1834,6 +1835,7 @@ CONTAINS ...@@ -1834,6 +1835,7 @@ CONTAINS
End Do End Do
! Write(*,*)'cuser: ', I, Trim(newr%cuser) ! Write(*,*)'cuser: ', I, Trim(newr%cuser)
I=1 I=1
newr%luser=''
Do Do
Inquire(ptf%ifn,Pos=newr%hlu) Inquire(ptf%ifn,Pos=newr%hlu)
Read(ptf%ifn)ch Read(ptf%ifn)ch
...@@ -1844,6 +1846,7 @@ CONTAINS ...@@ -1844,6 +1846,7 @@ CONTAINS
newr%hlulen=I newr%hlulen=I
! Write(*,*)'luser: ', I, Trim(newr%luser) ! Write(*,*)'luser: ', I, Trim(newr%luser)
I=1 I=1
newr%chost=''
Do Do
Read(ptf%ifn)ch Read(ptf%ifn)ch
If (ch == char(0)) Exit If (ch == char(0)) Exit
...@@ -1852,6 +1855,7 @@ CONTAINS ...@@ -1852,6 +1855,7 @@ CONTAINS
End Do End Do
! Write(*,*)'chost: ', I, Trim(newr%chost) ! Write(*,*)'chost: ', I, Trim(newr%chost)
I=1 I=1
newr%lhost=''
Do Do
Inquire(ptf%ifn,Pos=newr%hlh) Inquire(ptf%ifn,Pos=newr%hlh)
Read(ptf%ifn)ch Read(ptf%ifn)ch
...@@ -1862,6 +1866,7 @@ CONTAINS ...@@ -1862,6 +1866,7 @@ CONTAINS
newr%hlhlen=I newr%hlhlen=I
! Write(*,*)'lhost: ', I, Trim(newr%lhost) ! Write(*,*)'lhost: ', I, Trim(newr%lhost)
I=1 I=1
newr%info=''
Do Do
Read(ptf%ifn)ch Read(ptf%ifn)ch
If (ch == char(0)) Exit If (ch == char(0)) Exit
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment