summaryrefslogtreecommitdiff
path: root/lib/fmtmsg.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2018-12-19 23:01:50 +0100
committerChristoph Berg <myon@debian.org>2018-12-19 23:01:50 +0100
commit5c60c77adff9a54fd5f94f9915b22ccd8c4c5a3b (patch)
tree410fa358a5f73260a579b4d669730f319a4d2609 /lib/fmtmsg.f90
parent6c82050de806dcdafaed0077400a6c3396a4a159 (diff)
parente0737c56c1e384e05064a0c6e1ac46979371041b (diff)
Update upstream source from tag 'upstream/2.0.0+repack'
Update to upstream version '2.0.0+repack' with Debian dir 55dbb3a6a7eb189e187dd79f732623ca0b56116d
Diffstat (limited to 'lib/fmtmsg.f90')
-rw-r--r--lib/fmtmsg.f908
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/fmtmsg.f90 b/lib/fmtmsg.f90
index 2ceb8155..81789e2a 100644
--- a/lib/fmtmsg.f90
+++ b/lib/fmtmsg.f90
@@ -1,16 +1,16 @@
subroutine fmtmsg(msg,iz)
- character*22 msg
+ character*(*) msg
! Convert all letters to upper case
- iz=22
- do i=1,22
+ iz=len(msg)
+ do i=1,iz
if(msg(i:i).ge.'a' .and. msg(i:i).le.'z') &
msg(i:i)= char(ichar(msg(i:i))+ichar('A')-ichar('a'))
if(msg(i:i).ne.' ') iz=i
enddo
- do iter=1,5 !Collapse multiple blanks into one
+ do iter=1,37 !Collapse multiple blanks into one
ib2=index(msg(1:iz),' ')
if(ib2.lt.1) go to 100
msg=msg(1:ib2)//msg(ib2+2:)