From d870705e0bab988d3854716c41f3e214c6706bdf Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sat, 31 Oct 2009 10:07:22 +0300 Subject: [PATCH] Ticket #1759: fixed date & time insertion in editor. Signed-off-by: Andrew Borodin --- edit/edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edit/edit.c b/edit/edit.c index c61d07942..e239c0c29 100644 --- a/edit/edit.c +++ b/edit/edit.c @@ -3121,9 +3121,8 @@ edit_execute_cmd (WEdit *edit, int command, int char_for_insertion) case CK_Edit_Save_Mode: menu_save_mode_cmd (); case CK_Date: - break; { - char s[1024]; + char s[BUF_MEDIUM]; /* fool gcc to prevent a Y2K warning */ char time_format[] = "_c"; time_format[0] = '%'; @@ -3133,6 +3132,7 @@ edit_execute_cmd (WEdit *edit, int command, int char_for_insertion) edit->force |= REDRAW_PAGE; break; } + break; case CK_Goto: edit_goto_cmd (edit); break; -- 2.11.4.GIT