diff --git a/epan/dissectors/packet-xcsl.c b/epan/dissectors/packet-xcsl.c index 582fa41482..df1641d28a 100644 --- a/epan/dissectors/packet-xcsl.c +++ b/epan/dissectors/packet-xcsl.c @@ -31,6 +31,8 @@ #include +#include + /* string array size */ #define MAXLEN 4096 @@ -238,7 +240,8 @@ static void dissect_xcsl_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree proto_item *xcsl_item; request = FALSE; - result = atoi(str); + result = XCSL_UNDEFINED; + ws_strtou8(str, NULL, &result); if ( result >= XCSL_NONE ) { result = XCSL_UNDEFINED; }