Changeset b29c083 in mainline


Ignore:
Timestamp:
2018-11-30T06:09:30Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
94619b9
Parents:
63087f1d
Message:

replacing makro INPUT_MAX with real size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/input.c

    r63087f1d rb29c083  
    183183
    184184                const size_t input_length = str_size(usr->line) - str_size(cmd[0]) + str_size(data->value) + 1;
    185                 usr->line = (char*)malloc(INPUT_MAX * sizeof(char));
     185                usr->line = (char*)malloc(input_length * sizeof(char));
    186186                usr->line[0] = '\0';
    187187
Note: See TracChangeset for help on using the changeset viewer.