Skip to content

Commit 9542bf9

Browse files
committed
Fixed null-termination.
1 parent aa35b56 commit 9542bf9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

examples/plane.f90

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,12 @@ program main
106106
! Draw controls info.
107107
call draw_rectangle(30, 370, 260, 70, fade(GREEN, 0.5))
108108
call draw_rectangle_lines(30, 370, 260, 70, fade(DARKGREEN, 0.5))
109-
call draw_text('Pitch controlled with: KEY_UP / KEY_DOWN', 40, 380, 10, DARKGRAY)
110-
call draw_text('Roll controlled with: KEY_LEFT / KEY_RIGHT', 40, 400, 10, DARKGRAY)
111-
call draw_text('Yaw controlled with: KEY_A / KEY_S', 40, 420, 10, DARKGRAY)
109+
call draw_text('Pitch controlled with: KEY_UP / KEY_DOWN' // c_null_char, 40, 380, 10, DARKGRAY)
110+
call draw_text('Roll controlled with: KEY_LEFT / KEY_RIGHT' // c_null_char, 40, 400, 10, DARKGRAY)
111+
call draw_text('Yaw controlled with: KEY_A / KEY_S' // c_null_char, 40, 420, 10, DARKGRAY)
112112

113-
call draw_text('(c) WWI Plane Model created by GiaHanLam', SCREEN_WIDTH - 240, SCREEN_HEIGHT - 20, 10, DARKGRAY)
113+
call draw_text('(c) WWI Plane Model created by GiaHanLam' // c_null_char, &
114+
SCREEN_WIDTH - 240, SCREEN_HEIGHT - 20, 10, DARKGRAY)
114115
call draw_fps(10, 10)
115116
call end_drawing()
116117
end do

0 commit comments

Comments
 (0)