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

Changeset b67c7d6 in mainline for uspace/app/edit/edit.c


Ignore:
Timestamp:
2009-11-30T19:51:29Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
e866806
Parents:
0f06dbc
Message:

Add wstr_to_astr() for easy conversion from wide string to string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/edit/edit.c

    r0f06dbc rb67c7d6  
    391391
    392392        buffer[nc] = '\0';
    393 
    394         str = malloc(STR_BOUNDS(wstr_length(buffer)) + 1);
    395         if (str == NULL)
    396                 return NULL;
    397 
    398         wstr_to_str(str, STR_BOUNDS(wstr_length(buffer)) + 1, buffer);
     393        str = wstr_to_astr(buffer);
    399394
    400395        console_set_color(con, COLOR_BLACK, COLOR_WHITE, 0);
Note: See TracChangeset for help on using the changeset viewer.