forked from osmocom/wireshark
xcsl: use ws_strou function.
Change-Id: I1c054253b77b266a162d09e8da107e5ebb9eceb8 Reviewed-on: https://code.wireshark.org/review/18111 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
9b2dc3e769
commit
a10b505b84
|
@ -31,6 +31,8 @@
|
|||
|
||||
#include <epan/packet.h>
|
||||
|
||||
#include <wsutil/strtoi.h>
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue