diff --git a/core/plannernotes.c b/core/plannernotes.c
index 9f9a43f92..114c2a10b 100644
--- a/core/plannernotes.c
+++ b/core/plannernotes.c
@@ -210,7 +210,7 @@ void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_d
FRACTION(dp->time, 60),
gasname(&gasmix));
- len += snprintf(buffer + len, sz_buffer - len, "%s
", temp);
+ len += snprintf(buffer + len, sz_buffer - len, "%s
", temp);
newdepth = dp->depth.mm;
lasttime = dp->time;
}