Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 646aeac1ff208446554e36fdc93fdc1f > files > 3

kismet-3.1.0805291-4mdv2010.1.src.rpm

diff -p -up kismet-2008-05-R1/packet.cc.orig kismet-2008-05-R1/packet.cc
--- kismet-2008-05-R1/packet.cc.orig	2009-03-25 17:13:45.000000000 +0100
+++ kismet-2008-05-R1/packet.cc	2009-03-25 17:21:49.000000000 +0100
@@ -527,7 +527,7 @@ void GetPacketInfo(kis_packet *packet, p
 				// Copy and munge the beacon info if it falls w/in our
 				// boundaries
 				if ((unsigned int) (tag_offset + 11) < packet->len && temp >= 11) {
-					snprintf(ret_packinfo->beacon_info, SSID_SIZE,
+					snprintf(ret_packinfo->beacon_info, SSID_SIZE, "%s",
 						MungeToPrintable((char *) &(packet->data[tag_offset+11]), 
 										 temp - 11).c_str());
                 }