summaryrefslogtreecommitdiff
path: root/documentation/src/editor.dox
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2025-02-19 17:14:25 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2025-02-19 17:14:25 +0100
commit45476d093cdea0aad0668bf5ecac0ec4bd34d970 (patch)
tree10eda92367e50fb3de3f798b7a23f7e411d74a80 /documentation/src/editor.dox
parent27d991f046bdebb12bfd58f7c05a19f135979c29 (diff)
test/editor: ensure buffer termination
... in source file and documentation
Diffstat (limited to 'documentation/src/editor.dox')
-rw-r--r--documentation/src/editor.dox1
1 files changed, 1 insertions, 0 deletions
diff --git a/documentation/src/editor.dox b/documentation/src/editor.dox
index fb93e63b7..8d9d2fb1e 100644
--- a/documentation/src/editor.dox
+++ b/documentation/src/editor.dox
@@ -131,6 +131,7 @@ void update_title() {
fname = fl_filename_name(app_filename);
if (fname) {
char buf[FL_PATH_MAX + 3];
+ buf[FL_PATH_MAX + 2] = '\0'; // ensure that the buffer is always terminated
if (text_changed) {
snprintf(buf, FL_PATH_MAX+2, "%s *", fname);
} else {