Ignore:
Timestamp:
Mar 14, 2017, 12:59:09 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
e69ee36
Parents:
66fac03
git-author:
Sebastian Huber <sebastian.huber@…> (03/14/17 12:59:09)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/16/17 14:33:57)
Message:

dosfs: Fix msdos_utf8_normalize_and_fold()

It is all right in case the result uses the full destination buffer.
Without this fix the handling of a maximum 8.3 short file name is
broken.

Update #2928.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/dosfs/msdos_conv_utf8.c

    r66fac03 r1becaa9  
    223223
    224224  if ( result >= 0 ) {
    225     if ( result < unicode_buf_size ) {
     225    if ( result <= unicode_buf_size ) {
    226226      unicodes_to_reencode = result;
    227227    } else {
    228       unicodes_to_reencode = unicode_buf_size - 1;
     228      unicodes_to_reencode = unicode_buf_size;
    229229      eno = ENOMEM;
    230230    }
Note: See TracChangeset for help on using the changeset viewer.