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


Ignore:
Timestamp:
2009-04-09T21:16:50Z (16 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_ops.c

    ra2c58f6 r92fd52d7  
    488488        d = (fat_dentry_t *)b->data;
    489489        if (fat_classify_dentry(d) == FAT_DENTRY_LAST ||
    490             strcmp(d->name, FAT_NAME_DOT) == 0) {
     490            str_cmp(d->name, FAT_NAME_DOT) == 0) {
    491491                memset(d, 0, sizeof(fat_dentry_t));
    492492                strcpy(d->name, FAT_NAME_DOT);
     
    498498        d++;
    499499        if (fat_classify_dentry(d) == FAT_DENTRY_LAST ||
    500             strcmp(d->name, FAT_NAME_DOT_DOT) == 0) {
     500            str_cmp(d->name, FAT_NAME_DOT_DOT) == 0) {
    501501                memset(d, 0, sizeof(fat_dentry_t));
    502502                strcpy(d->name, FAT_NAME_DOT_DOT);
     
    938938                return;
    939939hit:
    940                 (void) ipc_data_read_finalize(callid, name, strlen(name) + 1);
     940                (void) ipc_data_read_finalize(callid, name, str_size(name) + 1);
    941941                bytes = (pos - spos) + 1;
    942942        }
Note: See TracChangeset for help on using the changeset viewer.