summary refs log tree commit diff stats
path: root/src/fe-text
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-11-02 02:05:55 -0400
committerTingPing <tingping@tingping.se>2013-11-02 21:07:03 -0400
commitaf248ce2c17416ed33e9feb3d248347ee86f02e4 (patch)
tree26b7f1b9bf44c727049ffc58c7b16c51decb2626 /src/fe-text
parent7e6f37b4cd68a520e808ac642a2750d5d60c0aa8 (diff)
Fix invalid timestamps crashing on Windows
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/fe-text.c2
1 files changed, 1 insertions, 1 deletions
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