From af248ce2c17416ed33e9feb3d248347ee86f02e4 Mon Sep 17 00:00:00 2001 From: TingPing Date: Sat, 2 Nov 2013 02:05:55 -0400 Subject: Fix invalid timestamps crashing on Windows --- src/fe-text/fe-text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fe-text') diff --git a/src/fe-text/fe-text.c b/src/fe-text/fe-text.c index 6f197916..76f93d8d 100644 --- a/src/fe-text/fe-text.c +++ b/src/fe-text/fe-text.c @@ -121,7 +121,7 @@ fe_new_window (struct session *sess, int focus) static int get_stamp_str (time_t tim, char *dest, int size) { - return strftime (dest, size, prefs.hex_stamp_text_format, localtime (&tim)); + return strftime_validated (dest, size, prefs.hex_stamp_text_format, localtime (&tim)); } static int -- cgit 1.4.1