Update network.c

IP address overwriting issue fix by copying the address into the struct's buffer rather than referencing the stack