Changeset 6eb2e96 in mainline for uspace/lib/libc/generic/vfs/vfs.c


Ignore:
Timestamp:
2009-04-10T07:53:54Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
Children:
3cc6a52
Parents:
f4b1535
Message:

str_cpy() and str_ncpy() in userspace. Nuke strcpy() and strncpy().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/vfs/vfs.c

    rf4b1535 r6eb2e96  
    7777                        return NULL;
    7878                }
    79                 str_ncpy(ncwd_path_nc, cwd_path, cwd_size + 1 + size + 1);
     79                str_cpy(ncwd_path_nc, cwd_size + 1 + size + 1, cwd_path);
    8080                ncwd_path_nc[cwd_size] = '/';
    8181                ncwd_path_nc[cwd_size + 1] = '\0';
     
    535535                return NULL;
    536536        }
    537         str_ncpy(buf, cwd_path, size);
     537        str_cpy(buf, size, cwd_path);
    538538        futex_up(&cwd_futex);
    539539        return buf;
Note: See TracChangeset for help on using the changeset viewer.