diff options
author | Evan Huus <eapache@gmail.com> | 2012-12-21 00:19:16 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2012-12-21 00:19:16 +0000 |
commit | e43dba76e0e77c19af56b89be62df918d750c676 (patch) | |
tree | eaa468daf542eff63b0bb60ea2d90d1ad8885341 /epan/osi-utils.c | |
parent | 79bde3d86aea1c3d75aabd3a8f4174bd8efcc588 (diff) |
Fix some valgrind warnings from the capture attached to
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8110
I can't reproduce the actual reported crash on trunk.
svn path=/trunk/; revision=46645
Diffstat (limited to 'epan/osi-utils.c')
-rw-r--r-- | epan/osi-utils.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/osi-utils.c b/epan/osi-utils.c index a71e13fbbe..6aa79268aa 100644 --- a/epan/osi-utils.c +++ b/epan/osi-utils.c @@ -190,8 +190,6 @@ print_area_buf(const guint8 *ad, int length, gchar *buf, int buf_len) { g_snprintf(buf, buf_len, "%02x%02x%02x%02x", ad[0], ad[1], ad[2], ad[3] ); } - if ( 4 < length ) - { while ( tmp < length / 4 ) { /* 16/4==4 > four Octets left to print */ cur += g_snprintf(cur, (gulong) (buf_len-(cur-buf)), "%02x", ad[tmp++] ); cur += g_snprintf(cur, (gulong) (buf_len-(cur-buf)), "%02x", ad[tmp++] ); @@ -207,7 +205,7 @@ print_area_buf(const guint8 *ad, int length, gchar *buf, int buf_len) cur += g_snprintf(cur, (gulong) (buf_len-(cur-buf)), "%02x", ad[tmp++] ); } } - } + } } /* print_area_buf */ |