Changeset 850235d in mainline for uspace/lib/clui/tinput.c
- Timestamp:
- 2013-03-10T14:56:21Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 05bab88
- Parents:
- ea906c29 (diff), 2277e03 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/clui/tinput.c
rea906c29 r850235d 40 40 #include <errno.h> 41 41 #include <assert.h> 42 #include < bool.h>42 #include <stdbool.h> 43 43 #include <tinput.h> 44 44 … … 104 104 static void tinput_display_tail(tinput_t *ti, size_t start, size_t pad) 105 105 { 106 wchar_t dbuf[INPUT_MAX_SIZE + 1]; 106 wchar_t *dbuf = malloc((INPUT_MAX_SIZE + 1) * sizeof(wchar_t)); 107 if (!dbuf) 108 return; 107 109 108 110 size_t sa; … … 146 148 147 149 console_flush(ti->console); 150 151 free(dbuf); 148 152 } 149 153
Note:
See TracChangeset
for help on using the changeset viewer.