Fix memory corruption

This commit is contained in:
Manolis Surligas 2016-05-09 03:04:31 +03:00
parent 5e1667ff9a
commit 926eca7f8e
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ namespace gr
}
/* All good until now. Allocate buffer memory and proceed */
buf = new uint8_t (d_mtu);
buf = new uint8_t[d_mtu];
while (d_running) {
sock = accept (listen_sock, &client_addr, &client_addr_len);