fixing mistake in reply code, uninitialized variable 'i' was being used as the count parameter in fwrite(). Hardcoded the value to 1, and set the length of each element to strlen() of message