diff options
Diffstat (limited to 'libvxi11client/client.c')
-rw-r--r-- | libvxi11client/client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libvxi11client/client.c b/libvxi11client/client.c index 6b4496e..ee5fe47 100644 --- a/libvxi11client/client.c +++ b/libvxi11client/client.c @@ -56,9 +56,10 @@ int main(int argc, char *argv[]) { printf("Error writing data\n"); // read some bytes - int bytesread = vxi11_read(NULL, 0, false, false, 0); + char buffer[1024]; + int bytesread = vxi11_read(buffer, sizeof(buffer), false, false, 0); if (bytesread >= 0) - printf("Read %d bytes\n", bytesread); + printf("Read %d bytes, %s\n", bytesread, buffer); else printf("Error reading data\n"); |