September 16th, 2002

Logo

Someone please shoot me

Who can tell me what is wrong with this little snippet of C++ code?

int cbXMLText = strlen(szXMLText);
szXMLText[cbXMLText] = '\0'; // need to null terminate the string since EncodeForXML doesn't