Skip to content

Commit

Permalink
fixed bug in remove path and in setting max_filename_size in mode 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandro Martinez committed Dec 6, 2016
1 parent 0f71c87 commit b397851
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/file_operations.f90
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ character(len=200) function remove_path(filename)
end do
i = i + 1
remove_path(1:ilength-i+1) = remove_path(i:ilength)
do i = ilength-i+1, 200
do i = ilength-i+2, 200
remove_path(i:i) = achar(32)
end do

Expand Down
2 changes: 1 addition & 1 deletion src/lovoalign.f90
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ program lovoalign
! Read command line parameters

if(narg.gt.0) call getpars()
max_filename_size = max(length(basename(protea)),length(basename(proteb)))
max_filename_size = max(length(remove_path(protea)),length(remove_path(proteb)))
call outputformats()
if(iprint.eq.0) then
write(*,header_list) trim(adjustl(basename(protea))), &
Expand Down

0 comments on commit b397851

Please sign in to comment.