Skip to content

Commit

Permalink
Merge pull request #103 from jkeur/patch-1
Browse files Browse the repository at this point in the history
Fix bug: line can be shorter than 4 chars
  • Loading branch information
SimonDanisch authored Jan 8, 2025
2 parents dee659d + 7aeb2d0 commit 11d9e62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/msh.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ end
function skip_block!(io)
while true
line = readline(io)
if line[1:4] == "\$End"
if length(line) >= 4 && line[1:4] == "\$End"
break
end
end
Expand Down

0 comments on commit 11d9e62

Please sign in to comment.