Subversion Repositories HelenOS

Rev

Rev 4263 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4263 Rev 4581
Line 80... Line 80...
80
    if (left <= size) {
80
    if (left <= size) {
81
        /* We do not have enough space for the whole string
81
        /* We do not have enough space for the whole string
82
         * with the trailing zero => print only a part
82
         * with the trailing zero => print only a part
83
         * of string
83
         * of string
84
         */
84
         */
85
        index_t index = 0;
85
        size_t index = 0;
86
       
86
       
87
        while (index < size) {
87
        while (index < size) {
88
            wchar_t uc = str_decode(str, &index, size);
88
            wchar_t uc = str_decode(str, &index, size);
89
           
89
           
90
            if (chr_encode(uc, data->dst, &data->len, data->size - 1) != EOK)
90
            if (chr_encode(uc, data->dst, &data->len, data->size - 1) != EOK)
Line 128... Line 128...
128
 *         printed).
128
 *         printed).
129
 *
129
 *
130
 */
130
 */
131
static int vsnprintf_wstr_write(const wchar_t *str, size_t size, vsnprintf_data_t *data)
131
static int vsnprintf_wstr_write(const wchar_t *str, size_t size, vsnprintf_data_t *data)
132
{
132
{
133
    index_t index = 0;
133
    size_t index = 0;
134
   
134
   
135
    while (index < (size / sizeof(wchar_t))) {
135
    while (index < (size / sizeof(wchar_t))) {
136
        size_t left = data->size - data->len;
136
        size_t left = data->size - data->len;
137
       
137
       
138
        if (left == 0)
138
        if (left == 0)