Changeset 2040 for trunk/src


Ignore:
Timestamp:
Dec 9, 1999, 11:59:37 AM (26 years ago)
Author:
sandervl
Message:

replaced strncpy with lstrcpynA

Location:
trunk/src/user32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/win32class.cpp

    r2033 r2040  
    1 /* $Id: win32class.cpp,v 1.7 1999-12-09 00:53:36 sandervl Exp $ */
     1/* $Id: win32class.cpp,v 1.8 1999-12-09 10:59:37 sandervl Exp $ */
    22/*
    33 * Win32 Window Class Managment Code for OS/2
     
    280280{
    281281  if(HIWORD(classNameA)) {
    282         strncpy(lpszClassName, classNameA, cchClassName-1);
     282        lstrncpyA(lpszClassName, classNameA, cchClassName-1);
    283283        return strlen(lpszClassName);
    284284  }
  • trunk/src/user32/win32wbase.cpp

    r2033 r2040  
    1 /* $Id: win32wbase.cpp,v 1.108 1999-12-09 00:53:37 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.109 1999-12-09 10:59:04 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    15391539        if (!lParam || !wParam) return 0;
    15401540        if (!windowNameA) ((LPSTR)lParam)[0] = 0;
    1541         else strncpy((LPSTR)lParam, windowNameA, wParam);
     1541        else lstrcpynA((LPSTR)lParam, windowNameA, wParam);
    15421542        return min(wndNameLength, wParam);
    15431543
  • trunk/src/user32/win32wmdiclient.cpp

    r1513 r2040  
    1 /* $Id: win32wmdiclient.cpp,v 1.12 1999-10-30 09:19:46 sandervl Exp $ */
     1/* $Id: win32wmdiclient.cpp,v 1.13 1999-12-09 10:59:05 sandervl Exp $ */
    22/*
    33 * Win32 MDI Client Window Class for OS/2
     
    520520        else
    521521        {
    522             strncpy(lpBuffer, frameTitle, MDI_MAXTITLELENGTH );
     522            lstrcpynA(lpBuffer, frameTitle, MDI_MAXTITLELENGTH );
    523523            lpBuffer[MDI_MAXTITLELENGTH]='\0';
    524524        }
Note: See TracChangeset for help on using the changeset viewer.