diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-12-12 22:02:46 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-12-12 22:02:46 +0000 |
commit | 76eebd5561607f65e8833f995812ac9e912e1685 (patch) | |
tree | d3e1af5420768cc1bc7f89f047eddbd363e532bc /wiretap/iseries.c | |
parent | 3e8ea514995ba115b584940253619cb1c2ca9b10 (diff) | |
download | wireshark-76eebd5561607f65e8833f995812ac9e912e1685.tar.gz |
Appease Visual Studio Code Analysis by ensuring that the string in csec[] is NULL-terminated.
svn path=/trunk/; revision=53995
Diffstat (limited to 'wiretap/iseries.c')
-rw-r--r-- | wiretap/iseries.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wiretap/iseries.c b/wiretap/iseries.c index d25dd06425..2a7686467f 100644 --- a/wiretap/iseries.c +++ b/wiretap/iseries.c @@ -640,6 +640,7 @@ iseries_parse_packet (wtap * wth, FILE_T fh, struct wtap_pkthdr *phdr, tm.tm_sec = sec; tm.tm_isdst = -1; phdr->ts.secs = mktime (&tm); + csec[sizeof(csec) - 1] = '\0'; switch (strlen(csec)) { case 0: |