Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset b29c083 in mainline


Ignore:
Timestamp:
2018-11-30T06:09:30Z (20 months ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Branches:
master
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.