diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-03-25 14:24:55 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-03-25 14:24:55 -0700 |
commit | 7140937a91a0ab90c6921364a5d2818785d74ff6 (patch) | |
tree | 19cf05f322b85cf7dcbb3a69ba468675618daa3d /pcap-linux.c | |
parent | 8705d011e5ce9fb3f22470382e69d480a2c8d976 (diff) |
Pick up fix from Android libpcap.
(Did anybody ever send this fix upstream to us?)
Diffstat (limited to 'pcap-linux.c')
-rw-r--r-- | pcap-linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-linux.c b/pcap-linux.c index 4ef0eedb..cf5cec0f 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -5124,7 +5124,7 @@ enter_rfmon_mode_wext(pcap_t *handle, int sock_fd, const char *device) ireq.ifr_ifrn.ifrn_name[sizeof ireq.ifr_ifrn.ifrn_name - 1] = 0; ireq.u.data.length = 1; /* 1 argument */ args[0] = 3; /* request Prism header */ - memcpy(ireq.u.name, args, IFNAMSIZ); + memcpy(ireq.u.name, args, sizeof (int)); if (ioctl(sock_fd, cmd, &ireq) != -1) { /* * Success. |