aboutsummaryrefslogtreecommitdiff
path: root/render.f90
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeff@approximatrix.com>2020-05-06 20:44:08 -0400
committerJeffrey Armstrong <jeff@approximatrix.com>2020-05-06 20:44:08 -0400
commitb3b8506ef0ce1200cd1f50455ff4a81deb8bd74e (patch)
tree8fae293c001b71da3fc0ca43d41c5d618d5190c5 /render.f90
parent09a2a56e22ce36238dce94f927f1909b63493960 (diff)
downloadLR-87-b3b8506ef0ce1200cd1f50455ff4a81deb8bd74e.zip
LR-87-b3b8506ef0ce1200cd1f50455ff4a81deb8bd74e.tar.gz
Some minor memory safety improvements
Diffstat (limited to 'render.f90')
-rw-r--r--render.f902
1 files changed, 1 insertions, 1 deletions
diff --git a/render.f90 b/render.f90
index 0045c22..d723467 100644
--- a/render.f90
+++ b/render.f90
@@ -212,7 +212,7 @@ contains
do while(w > r%max_width)
endpos = endpos - 1
- do while(text(endpos:endpos) /= ' ' .and. text(endpos:endpos) /= '-')
+ do while(text(endpos:endpos) /= ' ' .and. text(endpos:endpos) /= '-' .and. endpos > my_start)
endpos = endpos - 1
end do