paragui-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paragui-cvs] CVS: paragui/src/widgets pgrichedit.cpp,1.3.6.1,1.3.6.2


From: Alexander Pipelka <address@hidden>
Subject: [paragui-cvs] CVS: paragui/src/widgets pgrichedit.cpp,1.3.6.1,1.3.6.2
Date: Tue, 30 Jul 2002 06:18:40 -0400

Update of /cvsroot/paragui/paragui/src/widgets
In directory subversions:/tmp/cvs-serv20229/src/widgets

Modified Files:
      Tag: devel-1-0
        pgrichedit.cpp 
Log Message:
more valgrind fixes



Index: pgrichedit.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/widgets/pgrichedit.cpp,v
retrieving revision 1.3.6.1
retrieving revision 1.3.6.2
diff -C2 -r1.3.6.1 -r1.3.6.2
*** pgrichedit.cpp      28 May 2002 12:37:31 -0000      1.3.6.1
--- pgrichedit.cpp      30 Jul 2002 10:18:38 -0000      1.3.6.2
***************
*** 560,564 ****
        }
        
!       text->data()[text->size()] = 0;
        SetText(text->data());
        
--- 560,567 ----
        }
        
!       // Hmm,...
!       // size() returns the number of loaded bytes. We have to terminate the 
text with 0.
!       // Last character will be truncated by this (i love valgrind).
!       text->data()[text->size()-1] = 0;
        SetText(text->data());
        




reply via email to

[Prev in Thread] Current Thread [Next in Thread]