Changeset 28a5ebd in mainline for uspace/lib/usbdev/src/request.c
- Timestamp:
- 2020-06-18T15:39:50Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ce52c333
- Parents:
- 4f663f3e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/request.c
r4f663f3e r28a5ebd 756 756 /* Prepare dynamically allocated variables. */ 757 757 uint8_t *string = NULL; 758 wchar_t *string_chars = NULL;758 char32_t *string_chars = NULL; 759 759 760 760 /* Get the actual descriptor. */ … … 783 783 784 784 const size_t string_char_count = string_size / 2; 785 string_chars = malloc(sizeof( wchar_t) * (string_char_count + 1));785 string_chars = malloc(sizeof(char32_t) * (string_char_count + 1)); 786 786 if (string_chars == NULL) { 787 787 rc = ENOMEM;
Note:
See TracChangeset
for help on using the changeset viewer.