Changeset 11b285d in mainline for kernel/generic/src/console/kconsole.c
- Timestamp:
- 2018-05-13T15:19:32Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ad896eb
- Parents:
- 13db2044
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-05-13 14:59:01)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-05-13 15:19:32)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/kconsole.c
r13db2044 r11b285d 219 219 const char *hint; 220 220 const char *help; 221 char *output = malloc(MAX_CMDLINE, 0);221 char *output = nfmalloc(MAX_CMDLINE); 222 222 size_t hints_to_show = MAX_TAB_HINTS - 1; 223 223 size_t total_hints_shown = 0; … … 298 298 end++; 299 299 300 tmp = malloc(STR_BOUNDS(end - start + 1) , FRAME_ATOMIC);300 tmp = malloc(STR_BOUNDS(end - start + 1)); 301 301 if (!tmp) 302 302 return NULL; … … 332 332 wchar_t *current = history[history_pos]; 333 333 current[0] = 0; 334 char *tmp = malloc(STR_BOUNDS(MAX_CMDLINE), 0);334 char *tmp = nfmalloc(STR_BOUNDS(MAX_CMDLINE)); 335 335 336 336 while (true) { … … 810 810 printf("Type \"exit\" to leave the console.\n"); 811 811 812 char *cmdline = malloc(STR_BOUNDS(MAX_CMDLINE), 0);812 char *cmdline = nfmalloc(STR_BOUNDS(MAX_CMDLINE)); 813 813 while (true) { 814 814 wchar_t *tmp = clever_readline((char *) prompt, stdin);
Note:
See TracChangeset
for help on using the changeset viewer.