52
54
* NULL on failure (not enough memory).
57
59
*-----------------------------------------------------------------------------
64
66
* Allocate a buffer that is large enough for an HGFS packet and the
65
67
* synchronous HGFS command, write the command, and return a pointer that
66
68
* points into the buffer, after the command.
69
71
char *buf = (char*) calloc(sizeof(char), len);