Update network.c

IP address overwriting issue fix by copying the address into the struct's buffer rather than referencing the stack
Merge pull request #1 from richteer/patch-1

Update network.c