summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 642639e..86d3b86 100644
--- a/main.c
+++ b/main.c
@@ -818,7 +818,7 @@ int main(int argc, char **argv) {
if (buffer_settings(active_buffer)->auto_reload)
buffer_reload(active_buffer);
else {
- strbuf_cpy(ted->ask_reload, buffer_display_filename(active_buffer));
+ buffer_display_filename(active_buffer, ted->ask_reload, sizeof ted->ask_reload);
menu_open(ted, MENU_ASK_RELOAD);
}
}