diff options
| -rw-r--r-- | test/editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/editor.cxx b/test/editor.cxx index 57807cbd0..a7618d15a 100644 --- a/test/editor.cxx +++ b/test/editor.cxx @@ -80,7 +80,7 @@ void set_changed(bool v) { void set_filename(const char *new_filename) { if (new_filename) { - strlcpy(app_filename, new_filename, FL_PATH_MAX); + strncpy(app_filename, new_filename, FL_PATH_MAX); } else { app_filename[0] = 0; } |
