the first commented out code in send when I use an array on the stack works. I even got the malloc'd up array to send once. But around realloc it doesn't seem to work.