summaryrefslogtreecommitdiff
path: root/net-wireless/airtraf
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-11-18 03:03:03 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-11-18 03:03:03 +0000
commitf9f6fa91738181ebe9aca71b75d157d8b5df5335 (patch)
tree556cf671790196d83709b89133064a855f1879f2 /net-wireless/airtraf
parent3455c0a5153ae27d7c6c16ecd35fa3dec33f3dda (diff)
gentoo auto-resync : 18:11:2024 - 03:03:03
Diffstat (limited to 'net-wireless/airtraf')
-rw-r--r--net-wireless/airtraf/Manifest6
-rw-r--r--net-wireless/airtraf/airtraf-1.1-r4.ebuild6
-rw-r--r--net-wireless/airtraf/airtraf-1.1-r5.ebuild58
-rw-r--r--net-wireless/airtraf/files/airtraf-1.1-c23.patch24
-rw-r--r--net-wireless/airtraf/files/airtraf-1.1-ncurses-opaque.patch94
-rw-r--r--net-wireless/airtraf/files/airtraf-1.1-wformat-security.patch201
6 files changed, 386 insertions, 3 deletions
diff --git a/net-wireless/airtraf/Manifest b/net-wireless/airtraf/Manifest
index de16fc38bdcc..fa7933614f7b 100644
--- a/net-wireless/airtraf/Manifest
+++ b/net-wireless/airtraf/Manifest
@@ -1,7 +1,11 @@
+AUX airtraf-1.1-c23.patch 591 BLAKE2B 5973702fc49cb96d17b24916afe23846e13aa7eba42d64ccbe753135a2b19be7d8d3c9ce6361101ba0802cfb5ebf935ff8f07d5208daa9896b4fd1a26ba1705b SHA512 c53adb13f98f9f5c31848005fe5fe820f5c686daf249b0a63a822d678c173e56dbb7cbba8b05b1372b0e853a7368d91b3ca8ad8310ecb86785842b1e37068b5a
AUX airtraf-1.1-fno-common.patch 480 BLAKE2B cc22a8bfe2f96fc55889f7f4ddb3f5f4ce7a22865ab061ddabac3d32cd70adae5408729dba6e493b02f70748d4b4638333cc0c661597a5742b8144c536105e6c SHA512 59e73928e886497b7fce9d06a0e39ec3bbf5c3e89758af209bf012e12fd2a2b2272148dcad40a0323e8e418df50b84faa78e486ecad058f2cbfcadac94b6227d
AUX airtraf-1.1-fprintf-format.patch 421 BLAKE2B 8acd7417ded374a9973f52be45ee171507c4152a986be1a9da6d4fe011c68748b70c0ed7dda4db331c52f08775781e9283f839c04665f30f920ddf0138408a04 SHA512 9c0b63fc1a918cbbcaf82a263c42f891e1dcde6823768d9e2944cbe997aae220381e938f6a89efe1070592d3906cc11918a60d5cc50eea08d00bd29b16014eff
+AUX airtraf-1.1-ncurses-opaque.patch 3027 BLAKE2B cbbaf9a9d72af070c43aa319fddabb14040735abdf5433da3b6876dc43823c2ea79a7d652e8fcbe4dcd4532da0e8e1b343ef0a97da00b7d952a1bb916ff935d6 SHA512 fd3dd5359eacfb689617842a00265000d74786392daf0e6084c37dab19119d6375ad39543159ae368dbdbb78fa546cb9b9950ba3ee53360e86cbd984fa56b35c
AUX airtraf-1.1-off-by-one.patch 744 BLAKE2B c2000cc9014cfb02cb65fa6a51e3803c54dc813ef0268ec35fdf3119033438ab5b24e9caa5c0104435deeeedb46c545ada16683ccb638628385aef13647aafb5 SHA512 c19194498b2169a4ac20f20e51ea197bc9c96f5150a730a299375ea8d6babb4e498246fd8faf93d7dc285ca8a21d300a33102b2860868c7b9b02c89bd818c1fb
AUX airtraf-1.1-sniffd.patch 1699 BLAKE2B b175d5d6b82beb519d4a74c4faabd9967d030a08b0fe18c779ca6cccb34a277e740a861034e0e567278ba2485c842bd2be05f4e64dfc38a3a1af3e14fa2a57a5 SHA512 6906700e625d8c9b78b248d281b19e158610c1d58d1ab23de3526bf3d060b3bdc259ae768b587ff52fdbaf4dd343ccda30517578825b75e65ff11d7fda515a1f
+AUX airtraf-1.1-wformat-security.patch 8472 BLAKE2B fd304a5822491db1c2c65ae9293d146b6fbbc4f571bdc33dfb117053bec2a7e27e8c41e3ffb85fd8a376f886ed83007dd95bd5ebb6b29a90c9c6411fd14f7d79 SHA512 88d9ed3dfda24dc3bc3c1e4e9c38b812d43cfdea9f918b2de637f80a615f4c151e7c3e02d6e61b44df5f7bcf2ce927c4d2536d2398a274bb56398e28ddd7aa6c
DIST airtraf-1.1.tar.gz 136241 BLAKE2B 682516c6441efac8699fb15d40b99b50882d1c2d9e3acd344a979df080ca4f5532b0aa3247f37360f78ad2902018f907d6fe3e912b1d7b0df383c3bfe16f61a9 SHA512 7f341abb25e15dbdf510805230ee2f186a7a66d5c1e486bfdb978d3d8534d8b8c2cc1b5e0e323357c65af1eedbcb1da3e3e5f3ac8299db5f203f54b4a868f90b
-EBUILD airtraf-1.1-r4.ebuild 1124 BLAKE2B ed56094c9df247ee2f9229f1e878c5d0f017a50057c7cdb700c5088051fe0f02715c74613aff3c3d32630bb8d5947a1f7ac5f2d4b6f5a0cd1821b4c78cdb3fda SHA512 6980b7abcbb66620aec1c612a89403cbe6b86aa06f259983405c2a2de328bd81f996f0efa3cc89b711765907480b5b7ebe93a3f8db547446eadd0f84d68ebeb0
+EBUILD airtraf-1.1-r4.ebuild 1126 BLAKE2B 2130491dee7b098cae545314b224ef437144fa22c87e21a40230ee2a969d7068551793bed8f9b4076e70e8f8e62ce4fe3d0e12d43ce70df2fbde3e7fdf88b8ad SHA512 91b161e71534e55f364e25b9401964fcd4012704fa5ad48fc98fcc14e26a736bf9ef2812365eb92a616c6da9d42f387aff8ce6db455a2555e132e234a2e2773b
+EBUILD airtraf-1.1-r5.ebuild 1243 BLAKE2B 825eb4540ff9cbfd368df7fb9a3d34928173ba12443feb21ea55cef4abd0bffde260260305446d1a60afd524563ea0d3023eaef79cddb876c768d63838d8e9b6 SHA512 e9bca06fa25a813ad89c08cc0f35d7fe3f93a1260229fed5302fcef6f3ff6bc0277953de4ef2af7975113b95dfb3e19269e4aa498cf07d42b2eb0fc06c4280dd
MISC metadata.xml 685 BLAKE2B 7c2d70f03ea3b68ea3532819ba840eb2ad79ce7e677aa575292b5199aced9a268f3a524090d5682a3b0ce96544b4a49f3b7a3e255152773151610959e7eb86b4 SHA512 550862f03cb1c4f789c15a948c8d68663a0aecb36b85e8b09c50cd08a09fd003688afb58436744fe8888cd70ea0c66aa9b2b82399f325774045a3b9d9a291783
diff --git a/net-wireless/airtraf/airtraf-1.1-r4.ebuild b/net-wireless/airtraf/airtraf-1.1-r4.ebuild
index 453bad727a0e..ce4d903647fd 100644
--- a/net-wireless/airtraf/airtraf-1.1-r4.ebuild
+++ b/net-wireless/airtraf/airtraf-1.1-r4.ebuild
@@ -1,13 +1,15 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
+
inherit toolchain-funcs
DESCRIPTION="AirTraf 802.11b Wireless traffic sniffer"
-LICENSE="GPL-2"
HOMEPAGE="http://www.elixar.com/"
SRC_URI="http://www.elixar.com/${P}.tar.gz"
+
+LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
diff --git a/net-wireless/airtraf/airtraf-1.1-r5.ebuild b/net-wireless/airtraf/airtraf-1.1-r5.ebuild
new file mode 100644
index 000000000000..23df4f0c0448
--- /dev/null
+++ b/net-wireless/airtraf/airtraf-1.1-r5.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="AirTraf 802.11b Wireless traffic sniffer"
+HOMEPAGE="http://www.elixar.com/"
+SRC_URI="http://www.elixar.com/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND="
+ net-libs/libpcap
+ sys-libs/ncurses:=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-sniffd.patch
+ "${FILESDIR}"/${P}-off-by-one.patch
+ "${FILESDIR}"/${P}-fprintf-format.patch
+ "${FILESDIR}"/${P}-fno-common.patch
+ "${FILESDIR}"/${P}-c23.patch
+ "${FILESDIR}"/${P}-ncurses-opaque.patch
+ "${FILESDIR}"/${P}-wformat-security.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e '/^LIBS/s|=.*|= $(shell $(PKG_CONFIG) --libs panel)|' \
+ src/libncurses/Makefile || die
+ sed -i \
+ -e 's|-lpanel -lncurses|$(shell $(PKG_CONFIG) --libs ncurses panel)|' \
+ src/sniffd/Makefile || die
+ tc-export PKG_CONFIG
+}
+
+src_compile() {
+ # parallel make (bug #297331)
+ emake -C src -j1 \
+ CC="$(tc-getCC)" \
+ CXX="$(tc-getCXX)" \
+ CFLAGS="${CFLAGS}" \
+ CXXFLAGS="${CXXFLAGS}" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin src/airtraf
+ dodoc Authors COMPATIBILITY docs/airtraf_doc.html
+}
diff --git a/net-wireless/airtraf/files/airtraf-1.1-c23.patch b/net-wireless/airtraf/files/airtraf-1.1-c23.patch
new file mode 100644
index 000000000000..5c797aa61780
--- /dev/null
+++ b/net-wireless/airtraf/files/airtraf-1.1-c23.patch
@@ -0,0 +1,24 @@
+--- a/src/libncurses/deskman.c
++++ b/src/libncurses/deskman.c
+@@ -123,7 +123,7 @@ void colorwin(WINDOW * win)
+ free(blankpad);
+ }
+
+-void coloreol()
++void coloreol(WINDOW * win)
+ {
+ char *blankpad;
+ int y, x;
+--- a/src/libncurses/deskman.h
++++ b/src/libncurses/deskman.h
+@@ -50,6 +50,6 @@ void show_paused_win(WINDOW ** win, PANEL ** panel, char * message, char *messag
+ void infobox(char *text, char *prompt);
+ void standardcolors(int color);
+ void refresh_screen(void);
+-void show_sort_statwin();
++void show_sort_statwin(WINDOW **statwin, PANEL **panel);
+
+ #endif
+--
+2.47.0
+
diff --git a/net-wireless/airtraf/files/airtraf-1.1-ncurses-opaque.patch b/net-wireless/airtraf/files/airtraf-1.1-ncurses-opaque.patch
new file mode 100644
index 000000000000..540b7b2772eb
--- /dev/null
+++ b/net-wireless/airtraf/files/airtraf-1.1-ncurses-opaque.patch
@@ -0,0 +1,94 @@
+https://bugs.gentoo.org/932138
+--- a/src/libncurses/deskman.c
++++ b/src/libncurses/deskman.c
+@@ -110,12 +110,12 @@ void colorwin(WINDOW * win)
+
+ strcpy(blankpad, "");
+
+- for (ctr = 0; ctr <= win->_maxx; ctr++) {
++ for (ctr = 0; ctr <= getmaxx(win); ctr++) {
+ strcat(blankpad, " ");
+ }
+
+ scrollok(win, 0);
+- for (ctr = 0; ctr <= win->_maxy; ctr++) {
++ for (ctr = 0; ctr <= getmaxy(win); ctr++) {
+ wmove(win, ctr, 0);
+ wprintw(win, "%s", blankpad);
+ }
+--- a/src/sniffd/gui_channel_scan.c
++++ b/src/sniffd/gui_channel_scan.c
+@@ -339,7 +339,7 @@ void make_status_window(WINDOW ** statuswin, PANEL ** statuspanel)
+ void fill_line_blank(WINDOW * win, int line)
+ {
+ int i;
+- for (i = 0; i < win->_maxx; i++)
++ for (i = 0; i < getmaxx(win); i++)
+ mvwprintw(win, line, i, " ");
+ }
+
+--- a/src/sniffd/gui_tcp_analysis_scan.c
++++ b/src/sniffd/gui_tcp_analysis_scan.c
+@@ -463,7 +463,7 @@ void print_tcp_nodelist_row(WINDOW *win, int row, bss_node_t *node, int id, int
+ void print_tcp_nodelist_results(WINDOW * win, int * selected_node, int offset)
+ {
+ int i;
+- int max_view = win->_maxy - 6;
++ int max_view = getmaxy(win) - 6;
+ int last_item = 0;
+ int selected = 0;
+
+@@ -476,7 +476,7 @@ void print_tcp_nodelist_results(WINDOW * win, int * selected_node, int offset)
+ wattrset(win, STDATTR);
+
+ if (ap->num < 2){
+- mvwprintw(win, 4, (win->_maxx - 26) /2, "No Detected Wireless Nodes!");
++ mvwprintw(win, 4, (getmaxx(win) - 26) /2, "No Detected Wireless Nodes!");
+ return;
+ }
+
+@@ -485,15 +485,15 @@ void print_tcp_nodelist_results(WINDOW * win, int * selected_node, int offset)
+ if (*selected_node == 0){
+ *selected_node = 1;
+ }
+- mvwprintw(win, 4, (win->_maxx - 26) /2, " ");
++ mvwprintw(win, 4, (getmaxx(win) - 26) /2, " ");
+
+ if ((offset + max_view) < ap->num){
+ last_item = offset + max_view;
+- mvwprintw(win, win->_maxy - 1, 4, ">> More >>");
++ mvwprintw(win, getmaxy(win) - 1, 4, ">> More >>");
+ }
+ else{
+ last_item = ap->num;
+- mvwprintw(win, win->_maxy - 1, 4, "-- End --");
++ mvwprintw(win, getmaxy(win) - 1, 4, "-- End --");
+ }
+ for (i = offset; i < last_item; i++){
+ if (node == NULL) break;
+@@ -542,7 +542,7 @@ void scrollbreakdownwin(int direction, int select_node, int * offset)
+
+ void scrollnodelistwin(WINDOW *win, int direction, int * select_node, int * list_pos)
+ {
+- int max_view = win->_maxy - 6;
++ int max_view = getmaxy(win) - 6;
+
+ bss_t * ap = get_detailed_snapshot()->bss_list_top;
+
+@@ -581,11 +581,11 @@ void reset_active_win(WINDOW *win, int toggle)
+ {
+ if (toggle){
+ wattrset(win, ACTIVEATTR);
+- mvwprintw(win, win->_maxy, win->_maxx - 10, " ACTIVE ");
++ mvwprintw(win, getmaxy(win), getmaxx(win) - 10, " ACTIVE ");
+ }
+ else{
+ wattrset(win, BOXATTR);
+- wmove(win, win->_maxy, win->_maxx - 10);
++ wmove(win, getmaxy(win), getmaxx(win) - 10);
+ whline(win, ACS_HLINE, 8);
+ }
+ }
+--
+2.47.0
+
diff --git a/net-wireless/airtraf/files/airtraf-1.1-wformat-security.patch b/net-wireless/airtraf/files/airtraf-1.1-wformat-security.patch
new file mode 100644
index 000000000000..edd531258e66
--- /dev/null
+++ b/net-wireless/airtraf/files/airtraf-1.1-wformat-security.patch
@@ -0,0 +1,201 @@
+--- a/src/libncurses/deskman.c
++++ b/src/libncurses/deskman.c
+@@ -136,7 +136,7 @@ void coloreol(WINDOW * win)
+ for (i = x; i <= COLS - 1; i++)
+ strcat(blankpad, " ");
+
+- printw(blankpad);
++ printw("%s", blankpad);
+ free(blankpad);
+ }
+
+@@ -284,8 +284,8 @@ void indicate(char *message)
+ char sp_buf[10];
+ attrset(STATUSBARATTR);
+ sprintf(sp_buf, "%%%dc", COLS);
+- mvprintw(LINES - 1, 0, sp_buf, ' ');
+- mvprintw(LINES - 1, 1, message);
++ mvprintw(LINES - 1, 0, "%s%d", sp_buf, ' ');
++ mvprintw(LINES - 1, 1, "%s", message);
+ refresh();
+ }
+
+@@ -336,9 +336,9 @@ void infobox(char *text, char *prompt)
+ colorwin(win);
+ box(win, ACS_VLINE, ACS_HLINE);
+ wattrset(win, STDATTR);
+- mvwprintw(win, 1, 2, text);
++ mvwprintw(win, 1, 2, "%s", text);
+ wattrset(win, HIGHATTR);
+- mvwprintw(win, 2, 2, prompt);
++ mvwprintw(win, 2, 2, "%s", prompt);
+ update_panels();
+ doupdate();
+ wgetch(win);
+--- a/src/sniffd/gui_main.c
++++ b/src/sniffd/gui_main.c
+@@ -248,8 +248,8 @@ void print_selected_ap_results(WINDOW *win, PANEL *panel, struct access_point *a
+ mvwprintw(win, 3, 10, " ");
+ mvwprintw(win, 4, 10, " ");
+ mvwprintw(win, 6, 13, " ");
+- mvwprintw(win, 3, 10, ap->ssid);
+- mvwprintw(win, 4, 10, hexdump((__u8*)&ap->bssid,6));
++ mvwprintw(win, 3, 10, "%s", ap->ssid);
++ mvwprintw(win, 4, 10, "%s", hexdump((__u8*)&ap->bssid,6));
+ mvwprintw(win, 5, 10, "%s", ap->wep_status ? "encrypted " : "opensystem");
+ mvwprintw(win, 6, 13, "%02d", ap->channel);
+ }
+@@ -305,7 +305,7 @@ void print_system_results(WINDOW *win, PANEL *panel, struct SETTINGS *mySettings
+ else if (mySettings->card_type == WLANNG)
+ mvwprintw(win, 3, 19, "Wlan-ng ");
+
+- mvwprintw(win, 4, 19, mySettings->interface);
++ mvwprintw(win, 4, 19, "%s", mySettings->interface);
+
+ if (mySettings->capture_mode != CAPTURE_MODE_PLAYBACK)
+ mvwprintw(win, 5, 19, "Real-Time ");
+@@ -327,7 +327,7 @@ void print_system_results(WINDOW *win, PANEL *panel, struct SETTINGS *mySettings
+ else
+ mvwprintw(win, 8, 19, "OFF");
+
+- mvwprintw(win, 10, 12, uptime);
++ mvwprintw(win, 10, 12, "%s", uptime);
+
+ update_panels();
+ doupdate();
+@@ -373,7 +373,7 @@ void showcapturesetting(WINDOW *win, struct SETTINGS *mySettings)
+ {
+ wattrset(win, HIGHATTR);
+ mvwprintw(win, 1, 20, " ");
+- mvwprintw(win, 1, 20, mySettings->capture_file);
++ mvwprintw(win, 1, 20, "%s", mySettings->capture_file);
+ mvwprintw(win, 2, 20, "%s", mySettings->capture_overwrite ? "YES" : " NO");
+ mvwprintw(win, 3, 20, "%-5.1f", mySettings->capture_interval);
+ }
+--- a/src/sniffd/gui_channel_scan.c
++++ b/src/sniffd/gui_channel_scan.c
+@@ -286,8 +286,8 @@ void print_breakdown_results(WINDOW * win, int offset)
+ if (!strncmp(ap->ssid," ",32))
+ mvwprintw(win, position+3, 11, "<cloaked>");
+ else
+- mvwprintw(win, position+3, 11, ap->ssid);
+- mvwprintw(win, position+3, 39, hexdump((__u8*)&ap->bssid,6));
++ mvwprintw(win, position+3, 11, "%s", ap->ssid);
++ mvwprintw(win, position+3, 39, "%s", hexdump((__u8*)&ap->bssid,6));
+ mvwprintw(win, position+3, 53, "%s", ap->wep_status ? "crypt" : "open ");
+ mvwprintw(win, position+3, 59, "%5d", ap->mgmt_count);
+ mvwprintw(win, position+3, 65, "%4d", ap->ctrl_count);
+@@ -351,12 +351,12 @@ void print_status_msg(WINDOW * statuswin, int *location, char * msg)
+ scrollstatuswin(statuswin, SCROLLUP);
+ wmove(statuswin, 12, 0);
+ fill_line_blank(statuswin, 12);
+- mvwprintw(statuswin, 12, 2, msg);
++ mvwprintw(statuswin, 12, 2, "%s", msg);
+ }
+ else{
+ wmove(statuswin, *location, 0);
+ fill_line_blank(statuswin, *location);
+- mvwprintw(statuswin, *location, 2, msg);
++ mvwprintw(statuswin, *location, 2, "%s", msg);
+ }
+ *location = *location + 1;
+ update_panels();
+--- a/src/sniffd/gui_detailed_scan.c
++++ b/src/sniffd/gui_detailed_scan.c
+@@ -131,8 +131,8 @@ void printdetails(WINDOW * win)
+
+ wattrset(win, HIGHATTR);
+ if (info != NULL){
+- mvwprintw(win, 2, 10, hexdump((__u8*)&info->bssid,6));
+- mvwprintw(win, 2, 33, info->ssid);
++ mvwprintw(win, 2, 10, "%s", hexdump((__u8*)&info->bssid,6));
++ mvwprintw(win, 2, 33, "%s", info->ssid);
+ mvwprintw(win, 2, 61, "%s", info->wep_status ? "encrypted " : "opensystem");
+ mvwprintw(win, 2, 85, "%d", info->channel);
+
+--- a/src/sniffd/gui_gen_protocol_scan.c
++++ b/src/sniffd/gui_gen_protocol_scan.c
+@@ -150,8 +150,8 @@ void print_proto_activity_overview_results(WINDOW * win)
+
+ wattrset(win, HIGHATTR);
+ /** access point info **/
+- mvwprintw(win, 4, 10, ap->ssid);
+- mvwprintw(win, 5, 10, hexdump((__u8*)&ap->bssid,6));
++ mvwprintw(win, 4, 10, "%s", ap->ssid);
++ mvwprintw(win, 5, 10, "%s", hexdump((__u8*)&ap->bssid,6));
+ mvwprintw(win, 6, 10, "%s", ap->wep_status ? "encrypted " : "opensystem");
+ mvwprintw(win, 7, 13, "%02d", ap->channel);
+
+--- a/src/sniffd/gui_tcp_analysis_scan.c
++++ b/src/sniffd/gui_tcp_analysis_scan.c
+@@ -164,8 +164,8 @@ void print_tcp_activity_overview_results(WINDOW * win, int selected, int view)
+
+ wattrset(win, HIGHATTR);
+ /** access point info **/
+- mvwprintw(win, 4, 10, ap->ssid);
+- mvwprintw(win, 5, 10, hexdump((__u8*)&ap->bssid,6));
++ mvwprintw(win, 4, 10, "%s", ap->ssid);
++ mvwprintw(win, 5, 10, "%s", hexdump((__u8*)&ap->bssid,6));
+ mvwprintw(win, 6, 10, "%s", ap->wep_status ? "encrypted " : "opensystem");
+ mvwprintw(win, 7, 13, "%02d", ap->channel);
+ mvwprintw(win, 8, 18, "%3d", ap->num-1);
+--- a/src/sniffd/gui_tcp_analysis_scan.c
++++ b/src/sniffd/gui_tcp_analysis_scan.c
+@@ -437,7 +437,7 @@ void print_tcp_nodelist_row(WINDOW *win, int row, bss_node_t *node, int id, int
+ mvwprintw(win, row, 2, ">");
+ wattrset(win, STDATTR);
+ mvwprintw(win, row, 4, "%02d", id);
+- mvwprintw(win, row, 10, hexdump((__u8*)&node->mac_addr,6));
++ mvwprintw(win, row, 10, "%s", hexdump((__u8*)&node->mac_addr,6));
+ mvwprintw(win, row, 30, " ");
+ mvwprintw(win, row, 30, "%s", inet_ntoa(node->ip_addr));
+ mvwprintw(win, row, 48, "%6d", node->tcp_connections);
+@@ -447,7 +447,7 @@ void print_tcp_nodelist_row(WINDOW *win, int row, bss_node_t *node, int id, int
+ wattrset(win, HIGHATTR);
+ mvwprintw(win, row, 2, " ");
+ mvwprintw(win, row, 4, "%02d", id);
+- mvwprintw(win, row, 10, hexdump((__u8*)&node->mac_addr,6));
++ mvwprintw(win, row, 10, "%s", hexdump((__u8*)&node->mac_addr,6));
+ mvwprintw(win, row, 30, " ");
+ mvwprintw(win, row, 30, "%s", inet_ntoa(node->ip_addr));
+ mvwprintw(win, row, 48, "%6d", node->tcp_connections);
+--- a/src/sniffd/mon_ids.c
++++ b/src/sniffd/mon_ids.c
+@@ -76,9 +76,9 @@ void print_ids_statrow(WINDOW * win, node_stat_t * node, int seq_num)
+ int diagnosis = 0;
+
+ mvwprintw(win, seq_num, 2, "%2d: ", seq_num);
+- mvwprintw(win, seq_num, 6, hexdump((__u8*)&node->node_mac, 6));
++ mvwprintw(win, seq_num, 6, "%s", hexdump((__u8*)&node->node_mac, 6));
+ mvwprintw(win, seq_num, 18, " -> ");
+- mvwprintw(win, seq_num, 22, hexdump((__u8*)&node->dest_mac, 6));
++ mvwprintw(win, seq_num, 22, "%s", hexdump((__u8*)&node->dest_mac, 6));
+ mvwprintw(win, seq_num, 25 * COLS / 80, "%6d", node->probe_request);
+ mvwprintw(win, seq_num, 30 * COLS / 80, "%6d", node->assoc_request);
+ mvwprintw(win, seq_num, 35 * COLS / 80, "%6d", node->reassoc_request);
+@@ -93,10 +93,10 @@ void print_ids_statrow(WINDOW * win, node_stat_t * node, int seq_num)
+ node->deauth_status);
+ diagnosis = node->assoc_status + node->reassoc_status + node->auth_status;
+ if (diagnosis == 0){
+- mvwprintw(win, seq_num, 70 * COLS/ 80, " Normal ");
++ mvwprintw(win, seq_num, 70 * COLS/ 80, "%s", " Normal ");
+ }
+ else{
+- mvwprintw(win, seq_num, 70 * COLS/ 80, "Suspicious");
++ mvwprintw(win, seq_num, 70 * COLS/ 80, "%s", "Suspicious");
+ }
+ }
+
+@@ -115,10 +115,10 @@ void print_ids_details(WINDOW * win, ids_t *info, int page_num)
+ end_loc = MAX_STAT_ROW - 1;
+ }
+ if (end_loc < info->node_count){
+- mvwprintw(win, LINES * 0.6, 2, " >> More >> ");
++ mvwprintw(win, LINES * 0.6, 2, "%s", " >> More >> ");
+ }
+ else{
+- mvwprintw(win, LINES * 0.6, 2, " << END! >> ");
++ mvwprintw(win, LINES * 0.6, 2, "%s", " << END! >> ");
+ }
+ wattrset(win, HIGHATTR);
+ for (curr_loc = start_loc; curr_loc < end_loc; curr_loc++){