diff options
Diffstat (limited to 'libvxi11client/libvxi11client.c')
-rw-r--r-- | libvxi11client/libvxi11client.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libvxi11client/libvxi11client.c b/libvxi11client/libvxi11client.c index a6a5dd2..f2de6bb 100644 --- a/libvxi11client/libvxi11client.c +++ b/libvxi11client/libvxi11client.c @@ -213,6 +213,10 @@ int vxi11_read(VXI11Context* context, char* buffer, unsigned int bufferlen, bool #endif if (buffer != NULL) strncpy(buffer, resp->data.data_val, (bufferlen < resp->data.data_len ? bufferlen : resp->data.data_len)); +#ifdef DEBUG + else + printf("Supplied buffer is null!\n"); +#endif return resp->data.data_len; } else if (resp == NULL) |