aboutsummaryrefslogtreecommitdiffstats
path: root/extcap
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2016-03-24 16:40:14 +0100
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2016-03-24 20:10:18 +0000
commitcb084964187af430394f75f32df1015e2c35e076 (patch)
treed6a6bff5f3f321a70039d2ba5552c2fddc265ab5 /extcap
parent67a5c2947432e5c5009c481b9e0f8de95473bfee (diff)
ciscodump: fix OSX compilation error.
Change-Id: I65d0c5bc6178ef3c2a7e9d5cf8e81d985f9d555a Reviewed-on: https://code.wireshark.org/review/14613 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'extcap')
-rw-r--r--extcap/ciscodump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/extcap/ciscodump.c b/extcap/ciscodump.c
index 132665e779..97965d0bda 100644
--- a/extcap/ciscodump.c
+++ b/extcap/ciscodump.c
@@ -198,8 +198,8 @@ static int parse_line(char* packet _U_, unsigned* offset, char* line, int status
{
char** parts;
char** part;
- int value;
- guint64 size;
+ guint32 value;
+ size_t size;
if (strlen(line) <= 1) {
if (status == CISCODUMP_PARSER_IN_PACKET)
@@ -227,10 +227,10 @@ static int parse_line(char* packet _U_, unsigned* offset, char* line, int status
part = parts;
while(*part) {
if (strlen(*part) > 1) {
- value = htonl(strtoul(*part, NULL, 16));
+ value = (guint32)htonl(strtoul(*part, NULL, 16));
size = strlen(*part) / 2;
memcpy(packet + *offset, &value, size);
- *offset += size;
+ *offset += (guint32)size;
}
part++;
}