[GME-commit] GMESRC/GME/Console ScriptEdit.cpp,1.9,1.10

Log messages of CVS commits gme-commit at list.isis.vanderbilt.edu
Mon May 12 16:53:44 CDT 2008


Update of /project/gme-repository/GMESRC/GME/Console
In directory escher:/tmp/cvs-serv23611

Modified Files:
	ScriptEdit.cpp 
Log Message:
ReleaseBuffer called with the length of the string.


CVS User: Zoltan Molnar, ISIS (zolmol)

Index: ScriptEdit.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/Console/ScriptEdit.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** ScriptEdit.cpp	7 May 2008 20:50:16 -0000	1.9
--- ScriptEdit.cpp	12 May 2008 21:53:42 -0000	1.10
***************
*** 104,109 ****
  		CString inp;
  
! 		GetLine(0, inp.GetBuffer(256), 256);
! 		inp.ReleaseBuffer();
  		_bstr_t binp = inp;
  		// echo
--- 104,111 ----
  		CString inp;
  
! 		int nCopied = GetLine(0, inp.GetBuffer(256), 256);
! 		inp.ReleaseBuffer( nCopied); // specify how long the string is supposed to be
! 		ASSERT( nCopied == inp.GetLength());
! 
  		_bstr_t binp = inp;
  		// echo



More information about the GME-commit mailing list