diff options
author | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-12-10 20:26:39 +0000 |
---|---|---|
committer | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-12-10 20:26:39 +0000 |
commit | e893894f2742ec6e9b1fd4a7433b647fd7c34d72 (patch) | |
tree | 91789b52d34cf0c0f93fa14c2adce65d9df61ab5 /epan/dissectors/packet-ipmi.c | |
parent | 89b4ca0e8eaaf103aa522f95257df513da008e54 (diff) |
Fix Bug #4319: IPMI dissector crash (on Windows) displaying date/time;
Using strftime(..., "%F %T", ...) crashes on Windows (VC9) (!!);
Use "%Y-%m-%d %H:%M:%S" instead.....
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31223 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ipmi.c')
-rw-r--r-- | epan/dissectors/packet-ipmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ipmi.c b/epan/dissectors/packet-ipmi.c index af48dbf4fc..6ddb109e6e 100644 --- a/epan/dissectors/packet-ipmi.c +++ b/epan/dissectors/packet-ipmi.c @@ -789,7 +789,7 @@ ipmi_add_timestamp(proto_tree *tree, gint hf, tvbuff_t *tvb, guint offset) d, h, m, s); } else { time_t t = ts; - strftime(buf, sizeof(buf), "%F %T", gmtime(&t)); + strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", gmtime(&t)); proto_tree_add_uint_format_value(tree, hf, tvb, offset, 4, ts, "%s", buf); } |