axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/tests/auto_build/testcases/server/cpp LargeReturningString.cpp
Date Wed, 30 Mar 2005 08:34:58 GMT
samisa      2005/03/30 00:34:58

  Modified:    c/tests/auto_build/testcases/server/cpp
                        LargeReturningString.cpp
  Log:
  More fixes to return correct no of characters
  
  Revision  Changes    Path
  1.5       +3 -3      ws-axis/c/tests/auto_build/testcases/server/cpp/LargeReturningString.cpp
  
  Index: LargeReturningString.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/server/cpp/LargeReturningString.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- LargeReturningString.cpp	30 Mar 2005 08:30:49 -0000	1.4
  +++ LargeReturningString.cpp	30 Mar 2005 08:34:58 -0000	1.5
  @@ -34,11 +34,11 @@
   }
   xsd__string LargeReturningString::getLargeString(xsd__int Value0)  
   {
  -	xsd__string ret= new char[Value0];
  +	xsd__string ret= new char[Value0 +1];
   	char c = 'A';
  -	memset(ret, c, Value0 - 1);
  +	memset(ret, c, Value0);
   	
  -	ret[Value0 -1] = '\0';
  +	ret[Value0] = '\0';
   
   	return ret;
   }
  
  
  

Mime
View raw message