Show
Ignore:
Timestamp:
10/03/08 12:54:00 (3 months ago)
Author:
mwhitworth
Message:

Remove strcpy, replace calls to strcpy with strncpy, misc formatting fixes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/keobject/fs/vfs/super.c

    r1061 r1079  
    379379        /* Allocate a current directory string for the kernel loading process */ 
    380380        current->sCwd=(char*)MemAlloc(PATH_MAX); 
    381         strcpy(current->sCwd,"/"); 
     381        strncpy(current->sCwd, "/", 1); 
    382382 
    383383        KePrint("VFS: Sucessfully mounted the root filesystem (%s)\n",curr->name);