From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/aircrack-ng/patches/patch-src_osdep_linux_c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 package/aircrack-ng/patches/patch-src_osdep_linux_c (limited to 'package/aircrack-ng/patches/patch-src_osdep_linux_c') diff --git a/package/aircrack-ng/patches/patch-src_osdep_linux_c b/package/aircrack-ng/patches/patch-src_osdep_linux_c new file mode 100644 index 000000000..691af6d9f --- /dev/null +++ b/package/aircrack-ng/patches/patch-src_osdep_linux_c @@ -0,0 +1,17 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- aircrack-ng-1.0-rc3.orig/src/osdep/linux.c 2009-03-26 22:01:02.000000000 +0100 ++++ aircrack-ng-1.0-rc3/src/osdep/linux.c 2009-05-01 15:52:04.000000000 +0200 +@@ -1639,11 +1639,11 @@ static int do_linux_open(struct wif *wi, + + //use name in buf as new iface and set original iface as main iface + dev->main_if = (char*) malloc(strlen(iface)+1); +- bzero(dev->main_if, strlen(iface)+1); ++ memset(dev->main_if, 0, strlen(iface)+1); + strncpy(dev->main_if, iface, strlen(iface)); + + iface=(char*)malloc(strlen(buf)+1); +- bzero(iface, strlen(buf)+1); ++ memset(iface, 0, strlen(buf)+1); + strncpy(iface, buf, strlen(buf)); + } + -- cgit v1.2.3