fixed read past end of array by defining mac[MAX_MAC_LEN] instead of mac[6]

This commit is contained in:
vasyl-tkhir
2012-08-07 10:01:27 +00:00
parent 6a8fdcca74
commit 296c8c5bb0
+1 -1
View File
@@ -204,7 +204,7 @@ static void address_file_init(
long device_id = 0;
int snet = 0;
unsigned max_apdu = 0;
unsigned mac[6] = { 0 };
unsigned mac[MAX_MAC_LEN] = { 0 };
int count = 0;
char mac_string[80] = { "" }, sadr_string[80] = {
""};