- Timestamp:
- 02/04/09 19:38:40 (3 years ago)
- File:
-
- 1 edited
-
trunk/src/ifd/usb-descriptors.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ifd/usb-descriptors.c
r964 r1135 220 220 if (retval < 0) 221 221 return retval; 222 223 if (ifp->endpoint[i].extra != NULL) {224 ifp->extra =225 (unsigned char *)malloc(ifp->endpoint[i].226 extralen);227 if (!ifp->extra) {228 ct_error("out of memory");229 ifp->extralen = 0;230 return -1;231 }232 memcpy(ifp->extra, ifp->endpoint[i].extra,233 ifp->endpoint[i].extralen);234 ifp->extralen = ifp->endpoint[i].extralen;235 }236 222 237 223 buffer += retval;
Note: See TracChangeset
for help on using the changeset viewer.
