Changeset 35842
- Timestamp:
- Jul 18, 2013, 2:18:47 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130711/Ohana/src/libkapa/src/IOfuncs.c
r35761 r35842 54 54 va_end (argp); 55 55 56 if (!Nbyte) return (FALSE); 56 if (!Nbyte) { 57 KiiSendCommand (device, 16, "LEN: %11d", 0); 58 return (FALSE); 59 } 57 60 58 61 /* the message may contain up to 99,999,999,999 bytes (100MB) */ … … 84 87 /* find the message length, allocate space */ 85 88 sscanf (buffer, "%*s %d", &Nbytes); 89 if (Nbytes == 0) { 90 return TRUE; 91 } 92 86 93 ALLOCATE (message, char, Nbytes + 1); 87 94 memset (message, 0, Nbytes + 1); 95 88 96 89 97 /* read Nbytes from the device */
Note:
See TracChangeset
for help on using the changeset viewer.
