server.c: Use malloc() to allocate space for output in handle_read() so that the
data remain intact after the function returns