diff options
author | Jörg Mayer <jmayer@loplof.de> | 2004-01-07 01:44:23 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2004-01-07 01:44:23 +0000 |
commit | 9422e256ef8872b54b6e9424ae968de4eafecca5 (patch) | |
tree | 6a74bd5fc6744617ae85a452d4d276878b926f5a /gtk/ansi_map_stat.c | |
parent | bba39ed952513107da36c2e45fa097c644043959 (diff) | |
download | wireshark-9422e256ef8872b54b6e9424ae968de4eafecca5.tar.gz wireshark-9422e256ef8872b54b6e9424ae968de4eafecca5.tar.bz2 wireshark-9422e256ef8872b54b6e9424ae968de4eafecca5.zip |
Not that it really matters as the test still alwas evaluates to false:
An array with 256 elements should not be accessed with an index >= 256,
as we do not count as normal people do.
svn path=/trunk/; revision=9581
Diffstat (limited to 'gtk/ansi_map_stat.c')
-rw-r--r-- | gtk/ansi_map_stat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/ansi_map_stat.c b/gtk/ansi_map_stat.c index 826e484e68..87bd7212ac 100644 --- a/gtk/ansi_map_stat.c +++ b/gtk/ansi_map_stat.c @@ -5,7 +5,7 @@ * * MUCH code modified from service_response_time_table.c. * - * $Id: ansi_map_stat.c,v 1.8 2004/01/03 18:05:55 sharpe Exp $ + * $Id: ansi_map_stat.c,v 1.9 2004/01/07 01:44:23 jmayer Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -100,7 +100,7 @@ ansi_map_stat_packet( tapdata = tapdata; pinfo = pinfo; - if (data_p->message_type > N_MESSAGE_TYPES) + if (data_p->message_type >= N_MESSAGE_TYPES) { /* * unknown PDU type !!! |