aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2015-11-08 06:53:40 -0800
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2015-11-08 14:55:36 +0000
commit5c2ab828700692bf97d7eee1de86d1793c3c6a74 (patch)
treec2291f0ebd5dc284f87cbbe4447e6eda9dcfe557
parentcaa1e87410fb74606f2ec91b5fd1b897053149bf (diff)
DCT2000 wiretap: Try to address CID 1158844 and 1158845
Change-Id: Icb6d93f2e85180e2a4c24e41114f76bb6c7b5a79 Reviewed-on: https://code.wireshark.org/review/11638 Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
-rw-r--r--wiretap/catapult_dct2000.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/catapult_dct2000.c b/wiretap/catapult_dct2000.c
index 764df9e993..f10dc65917 100644
--- a/wiretap/catapult_dct2000.c
+++ b/wiretap/catapult_dct2000.c
@@ -718,7 +718,7 @@ catapult_dct2000_dump(wtap_dumper *wdh, const struct wtap_pkthdr *phdr,
/* Protocol name */
if (is_comment) {
- is_sprint = strcmp((const char *)pd+n, "sprint") == 0;
+ is_sprint = (strcmp((const char *)pd+n, "sprint") == 0);
}
for (; pd[n] != '\0'; n++);
n++;
@@ -1579,7 +1579,7 @@ get_file_time_stamp(gchar *linebuff, time_t *secs, guint32 *usecs)
/********************************************************/
/* Scan for all fields */
- scan_found = sscanf(linebuff, "%9s %2d, %4d %2d:%2d:%2d.%4u",
+ scan_found = sscanf(linebuff, "%10s %2d, %4d %2d:%2d:%2d.%4u",
month, &day, &year, &hour, &minute, &second, usecs);
if (scan_found != 7) {
/* Give up if not all found */