- Timestamp:
- 07/21/08 14:37:19 (4 years ago)
- File:
-
- 1 edited
-
trunk/src/ifd/ifd-eutron.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ifd/ifd-eutron.c
r964 r1065 171 171 /* move the data to the beginning of the buffer, so there's a big 172 172 * contiguous chunk */ 173 mem cpy(priv->readbuffer, &priv->readbuffer[priv->tail],173 memmove(priv->readbuffer, &priv->readbuffer[priv->tail], 174 174 priv->head - priv->tail); 175 175 priv->head -= priv->tail; 176 176 /* since we set tail=0 here, the rest of the function can ignore it */ 177 177 priv->tail = 0; 178 for (c = 0; c < 20; c++) {178 for (c = 0; c < 30; c++) { 179 179 rbs = 499 - priv->head; 180 180 if (rbs == 0) … … 194 194 } 195 195 if (len > priv->head) 196 len = priv->head;196 return -1; 197 197 memcpy(buffer, priv->readbuffer, len); 198 198 priv->tail += len;
Note: See TracChangeset
for help on using the changeset viewer.
