axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/c/src/soap SoapSerializer.cpp
Date Wed, 23 Mar 2005 18:13:23 GMT
dims        2005/03/23 10:13:23

  Modified:    c/src/soap SoapSerializer.cpp
  Log:
  Need to copy the string to a new location (Following the pattern as done in SoapFault::setParam)
  
  Revision  Changes    Path
  1.107     +2 -1      ws-axis/c/src/soap/SoapSerializer.cpp
  
  Index: SoapSerializer.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/SoapSerializer.cpp,v
  retrieving revision 1.106
  retrieving revision 1.107
  diff -u -r1.106 -r1.107
  --- SoapSerializer.cpp	23 Mar 2005 15:44:59 -0000	1.106
  +++ SoapSerializer.cpp	23 Mar 2005 18:13:23 -0000	1.107
  @@ -836,7 +836,8 @@
       case XSD_QNAME:
       case XSD_NOTATION:
       case XSD_STRING:
  -        pParam->m_Value.pStrValue = (char *) (pValue);
  +        pParam->m_Value.pStrValue = new char[strlen((const char*)pValue)+1];
  +        strcpy((char*)(pParam->m_Value.pStrValue),(const char*)pValue);
           break;
   
       case XSD_HEXBINARY:
  
  
  

Mime
View raw message