Ignore:
Timestamp:
Jul 6, 2000, 11:18:45 PM (25 years ago)
Author:
sandervl
Message:

strncpy call changes + language api updates/fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/hmfile.cpp

    r3785 r3804  
    1 /* $Id: hmfile.cpp,v 1.9 2000-07-01 12:51:51 sandervl Exp $ */
     1/* $Id: hmfile.cpp,v 1.10 2000-07-06 21:18:42 sandervl Exp $ */
    22
    33/*
     
    178178  pOFStruct->cBytes = sizeof(OFSTRUCT);
    179179  pOFStruct->nErrCode = 0;
    180   strncpy((char *)pOFStruct->szPathName, lpFileName, OFS_MAXPATHNAME - 1);
     180  strncpy((char *)pOFStruct->szPathName, lpFileName, OFS_MAXPATHNAME);
     181  pOFStruct->szPathName[OFS_MAXPATHNAME-1] = 0;
    181182
    182183  hFile = OSLibDosOpenFile((LPSTR)lpFileName, fuMode);
Note: See TracChangeset for help on using the changeset viewer.