C Code - Bug Fix

*Fixed bug from pervious upload. "Garbage" is no longer written to
receive.txt. Fixed by changing sizeof(buf) to strlen(buf) in client.c.
Now, only "real" data is written.