Fix call to ws_strtoi32().

Change-Id: I536ee3fbda563f4b544eea334c5d7e9a642c69e2
Reviewed-on: https://code.wireshark.org/review/18181
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2016-10-13 00:16:57 -07:00
parent 198df02f8a
commit ddb6513db3
1 changed files with 2 additions and 2 deletions

View File

@ -3202,14 +3202,14 @@ readcnffile(FILE *fh)
register_hf_rename(old_name, new_name);
} else if(!strncmp(cnfline, "UNION_TAG_SIZE", 14)){
char *union_name, *union_tag;
int union_tag_size;
gint32 union_tag_size;
union_tag_size_item_t *utsi;
char *str;
str=cnfline+14;
str=str_read_string(str, &union_name);
str_read_string(str, &union_tag);
if (!ws_strtoi32(union_tag, NULL, union_tag_size)) {
if (!ws_strtoi32(union_tag, NULL, &union_tag_size)) {
FPRINTF(NULL, "UNION_TAG_SIZE: invalid string: %s\n", union_tag);
exit(10);
}