cargilld 2004/12/06 03:45:15 Modified: c/tools/NLS/Xlat Xlat.cpp Log: Add check to Xlat to see if message text is greater than 128 characters. Revision Changes Path 1.22 +10 -0 xml-xerces/c/tools/NLS/Xlat/Xlat.cpp Index: Xlat.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/tools/NLS/Xlat/Xlat.cpp,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- Xlat.cpp 8 Sep 2004 13:57:07 -0000 1.21 +++ Xlat.cpp 6 Dec 2004 11:45:14 -0000 1.22 @@ -17,6 +17,9 @@ /* * $Log$ + * Revision 1.22 2004/12/06 11:45:14 cargilld + * Add check to Xlat to see if message text is greater than 128 characters. + * * Revision 1.21 2004/09/08 13:57:07 peiyongz * Apache License Version 2.0 * @@ -381,6 +384,13 @@ // Write out an entry to the target header file. These are enums, so // we use the id as the enum name. // + + if (XMLString::stringLen(msgText) > 128) { + wprintf(L"Message text %s is too long, 128 character limit\n\n", xmlStrToPrintable(msgText)); + throw ErrReturn_SrcFmtError; + } + + fwprintf(headerFl, L" , %-32s = %d\n", xmlStrToPrintable(msgId), count); releasePrintableStr
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]