Fix invalid timestamps crashing on Windows

This commit is contained in:
TingPing committed 2013-11-02 21:07:03 -04:00
1 parent 7e6f37b4cd
commit af248ce2c1
5 files changed
+82 -20

No files matched your search

+1 -1
View File
@@ -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