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/heapstring.cpp

    r3730 r3804  
    1 /* $Id: heapstring.cpp,v 1.28 2000-06-18 12:55:17 phaller Exp $ */
     1/* $Id: heapstring.cpp,v 1.29 2000-07-06 21:18:42 sandervl Exp $ */
    22
    33/*
     
    14271427    else           
    14281428    {
    1429         strncpy (lpNumberStr, sDestination, cchNumber-1);
    1430         *(lpNumberStr+cchNumber-1) = '\0';   /* ensure we got a NULL at the end */
     1429        strncpy (lpNumberStr, sDestination, cchNumber);
     1430        lpNumberStr[cchNumber-1] = '\0';   /* ensure we got a NULL at the end */
    14311431        retVal = strlen(lpNumberStr);
    14321432    }
Note: See TracChangeset for help on using the changeset viewer.