[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/engine lib_string.c,1.25,1.26
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/engine lib_string.c,1.25,1.26 |
Date: |
Sun, 01 Dec 2002 19:27:55 -0500 |
Update of /cvsroot/dotgnu-pnet/pnet/engine
In directory subversions:/tmp/cvs-serv20747/engine
Modified Files:
lib_string.c
Log Message:
Bug in string construction and CharFill that caused it to use the wrong
pointer in "char[]" arrays.
Index: lib_string.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/lib_string.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -r1.25 -r1.26
*** lib_string.c 11 Nov 2002 22:26:05 -0000 1.25
--- lib_string.c 2 Dec 2002 00:27:53 -0000 1.26
***************
*** 89,93 ****
if(length > 0)
{
! ILMemCpy(StringToBuffer(_this), ArrayToBuffer(value) +
startIndex,
sizeof(ILUInt16) * length);
}
--- 89,94 ----
if(length > 0)
{
! ILMemCpy(StringToBuffer(_this),
! ((ILUInt16 *)(ArrayToBuffer(value))) +
startIndex,
sizeof(ILUInt16) * length);
}
***************
*** 1189,1193 ****
ILInt32 count)
{
! ILUInt16 *src = ArrayToBuffer(chars) + index;
ILUInt16 *dest = StringToBuffer(str) + start;
while(count > 0)
--- 1190,1194 ----
ILInt32 count)
{
! ILUInt16 *src = ((ILUInt16 *)(ArrayToBuffer(chars))) + index;
ILUInt16 *dest = StringToBuffer(str) + start;
while(count > 0)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/engine lib_string.c,1.25,1.26,
Rhys Weatherley <address@hidden> <=