Ignore:
File:
1 edited

Legend:

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

    rb67c7d64 rda2bd08  
    134134static char *tinput_get_str(tinput_t *ti)
    135135{
    136         return wstr_to_astr(ti->buffer);
     136        char *str;
     137
     138        str = malloc(STR_BOUNDS(ti->nc) + 1);
     139        if (str == NULL)
     140                return NULL;
     141
     142        wstr_nstr(str, ti->buffer, STR_BOUNDS(ti->nc) + 1);
     143
     144        return str;
    137145}
    138146
Note: See TracChangeset for help on using the changeset viewer.