Changeset da6c4ee in mainline


Ignore:
Timestamp:
2012-10-29T20:52:17Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c0f8909
Parents:
b2ac3998
Message:

Allocate dbuf in tinput_display_tail() from heap rather than on stack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/clui/tinput.c

    rb2ac3998 rda6c4ee  
    104104static void tinput_display_tail(tinput_t *ti, size_t start, size_t pad)
    105105{
    106         wchar_t dbuf[INPUT_MAX_SIZE + 1];
     106        wchar_t *dbuf = malloc(INPUT_MAX_SIZE + 1);
     107        if (!dbuf)
     108                return;
    107109       
    108110        size_t sa;
     
    146148       
    147149        console_flush(ti->console);
     150
     151        free(dbuf);
    148152}
    149153
Note: See TracChangeset for help on using the changeset viewer.