Changeset 92fd52d7 in mainline for uspace/srv/fs/fat/fat_dentry.c


Ignore:
Timestamp:
2009-04-09T21:16:50Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7afb4a5
Parents:
a2c58f6
Message:

Nuke strcpy() and strcmp().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_dentry.c

    ra2c58f6 r92fd52d7  
    6363{
    6464        int rc;
     65        size_t size;
     66
    6567        if (!(rc = stricmp(name, component)))
    6668                return rc;
     
    7072                 * space for appending an extra '.' to name.
    7173                 */
    72                 name[strlen(name)] = '.';
    73                 name[strlen(name) + 1] = '\0';
     74                size = str_size(name);
     75                name[size] = '.';
     76                name[size + 1] = '\0';
    7477                rc = stricmp(name, component);
    7578        }
Note: See TracChangeset for help on using the changeset viewer.