~ubuntu-branches/ubuntu/precise/xerces-c/precise-security

« back to all changes in this revision

Viewing changes to src/xercesc/framework/XMLFormatter.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jay Berkenbilt
  • Date: 2010-02-06 16:46:23 UTC
  • mfrom: (2.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100206164623-xbntkcs6ks20nboa
Tags: 3.1.0-1
* New upstream release
* Updated standards version to 3.8.4.  No changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 */
17
17
 
18
18
/**
19
 
 * $Id: XMLFormatter.cpp 695949 2008-09-16 15:57:44Z borisk $
 
19
 * $Id: XMLFormatter.cpp 901107 2010-01-20 08:45:02Z borisk $
20
20
 */
21
21
 
22
22
 
506
506
   XMLSize_t count = oCount;
507
507
 
508
508
   while (count) {
509
 
      const XMLSize_t srcChars = (count > kTmpBufSize) ? kTmpBufSize : count;
 
509
     const XMLSize_t srcChars = (count > XMLSize_t (kTmpBufSize))
 
510
       ? XMLSize_t (kTmpBufSize) : count;
510
511
 
511
512
      const XMLSize_t outBytes
512
513
         = fXCoder->transcodeTo(srcPtr, srcChars,