diff options
author | daniel <danieruru@gmail.com> | 2013-01-18 03:51:04 +0900 |
---|---|---|
committer | daniel <danieruru@gmail.com> | 2013-01-18 03:51:04 +0900 |
commit | 4e01ae716c25937daa7d1c82e6d0da8fdd0ad857 (patch) | |
tree | 4f4da26832f993ae5c1caa52b81d1357cea9c764 /libvxi11client/libvxi11client.c | |
parent | 50a7131bba4d6cc161e0531fe194e75d07e05cec (diff) |
Add prefix, fix read (probably leaks..).
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) |