Skip to content

Commit

Permalink
Fix bug: line can be shorter than 4 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeur authored Jan 8, 2025
1 parent dee659d commit 7aeb2d0
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 7aeb2d0

Please sign in to comment.