[pywin32-checkins] pywin32/com/win32com/src/extensions PyICatRegister.cpp,1.4,1.5
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <mha...@us...> - 2003-12-02 03:26:18
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src/extensions In directory sc8-pr-cvs1:/tmp/cvs-serv2272 Modified Files: PyICatRegister.cpp Log Message: _wcsncpy wants the number of characters, not bytes. Index: PyICatRegister.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/extensions/PyICatRegister.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** PyICatRegister.cpp 31 Oct 2003 12:40:59 -0000 1.4 --- PyICatRegister.cpp 2 Dec 2003 00:15:15 -0000 1.5 *************** *** 108,112 **** OLECHAR *oc; if (PyWin_String_AsWCHAR(desc, (DWORD)-1, &oc)) { ! wcsncpy(infos[i].szDescription, oc, sizeof(infos->szDescription)); PyWinObject_FreeString(oc); } --- 108,113 ---- OLECHAR *oc; if (PyWin_String_AsWCHAR(desc, (DWORD)-1, &oc)) { ! wcsncpy(infos[i].szDescription, oc, ! sizeof(infos->szDescription)/sizeof(infos->szDescription[0])); PyWinObject_FreeString(oc); } |