Changeset 7011f26 in rtems


Ignore:
Timestamp:
Mar 16, 2017, 6:44:38 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11
Children:
4c4869f
Parents:
49eb6061
git-author:
Sebastian Huber <sebastian.huber@…> (03/16/17 06:44:38)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/21/17 15:15:11)
Message:

dosfs: Fix long file name padding

Close #2934.

File:
1 edited

Legend:

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

    r49eb6061 r7011f26  
    17611761        for (i = 0; i < MSDOS_LFN_LEN_PER_ENTRY; ++i)
    17621762        {
    1763             if (!(*n == 0 && *(n+1) == 0))
     1763            if (*n != 0 || *(n + 1) != 0)
    17641764            {
    17651765                *p = *n;
    1766                 *(p+1) = *(n+1);
     1766                *(p + 1) = *(n + 1);
     1767                n += MSDOS_NAME_LFN_BYTES_PER_CHAR;
    17671768            }
    17681769            else
     
    17721773                fill = 0xff;
    17731774            }
    1774             n += MSDOS_NAME_LFN_BYTES_PER_CHAR;
    17751775#if MSDOS_FIND_PRINT
    17761776            printf ( "'%c''%c'", *p, *(p+1) );
Note: See TracChangeset for help on using the changeset viewer.