Changeset 23cb44b in mainline for uspace/lib/usbvirt/transaction.c


Ignore:
Timestamp:
2010-10-26T13:43:11Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2185776
Parents:
ca07cd3
Message:

Bugfixes in libusbvirt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbvirt/transaction.c

    rca07cd3 r23cb44b  
    3535#include <errno.h>
    3636#include <stdlib.h>
    37 #include <stdio.h>
    3837#include <mem.h>
    3938
     
    7978        transfer->direction = setup_transaction_direction(device, endpoint,
    8079            buffer, size);
    81         transfer->request = buffer;
     80        transfer->request = malloc(size);
     81        memcpy(transfer->request, buffer, size);
    8282        transfer->request_size = size;
    8383        transfer->data = NULL;
Note: See TracChangeset for help on using the changeset viewer.