From c1f4f0481c030e86aa20024823cfd47a2369d646 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Wed, 15 Jun 2011 13:47:21 +0100 Subject: [PATCH] Fix save_filename crash --- src/interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interface.c b/src/interface.c index b726efb8b..62c4b005c 100644 --- a/src/interface.c +++ b/src/interface.c @@ -5189,9 +5189,9 @@ int save_filename_ui(pixel *vid_buf) ed.def = "[filename]"; ed.focus = 1; ed.hide = 0; - ed.cursor = strlen(svf_name); + ed.cursor = 0; ed.multiline = 0; - strcpy(ed.str, ""); + ed.str[0] = 0; while (!sdl_poll()) {