Index: /branches/eam_branches/ipp-20130711/Ohana/src/libkapa/src/IOfuncs.c
===================================================================
--- /branches/eam_branches/ipp-20130711/Ohana/src/libkapa/src/IOfuncs.c	(revision 35841)
+++ /branches/eam_branches/ipp-20130711/Ohana/src/libkapa/src/IOfuncs.c	(revision 35842)
@@ -54,5 +54,8 @@
   va_end (argp);
 
-  if (!Nbyte) return (FALSE);
+  if (!Nbyte) {
+    KiiSendCommand (device, 16, "LEN: %11d", 0);
+    return (FALSE);
+  }
 
   /* the message may contain up to 99,999,999,999 bytes (100MB) */
@@ -84,6 +87,11 @@
   /* find the message length, allocate space */
   sscanf (buffer, "%*s %d", &Nbytes);
+  if (Nbytes == 0) {
+    return TRUE;
+  }
+
   ALLOCATE (message, char, Nbytes + 1);
   memset (message, 0, Nbytes + 1);
+
 
   /* read Nbytes from the device */
