Skip to content
Snippets Groups Projects
Select Git revision
1 result

encoding.c

  • David Kilzer's avatar
    2878a627bee8
    xmlBufAvail() should return length without including a byte for NUL terminator · 2878a627bee8
    David Kilzer authored
    * buf.c:
    (xmlBufAvail):
    - Return the number of bytes available in the buffer, but do not
      include a byte for the NUL terminator so that it is reserved.
    
    * encoding.c:
    (xmlCharEncFirstLineInput):
    (xmlCharEncInput):
    (xmlCharEncOutput):
    * xmlIO.c:
    (xmlOutputBufferWriteEscape):
    - Remove code that subtracts 1 from the return value of
      xmlBufAvail().  It was implemented inconsistently anyway.
    2878a627bee8
    History
    xmlBufAvail() should return length without including a byte for NUL terminator
    David Kilzer authored
    * buf.c:
    (xmlBufAvail):
    - Return the number of bytes available in the buffer, but do not
      include a byte for the NUL terminator so that it is reserved.
    
    * encoding.c:
    (xmlCharEncFirstLineInput):
    (xmlCharEncInput):
    (xmlCharEncOutput):
    * xmlIO.c:
    (xmlOutputBufferWriteEscape):
    - Remove code that subtracts 1 from the return value of
      xmlBufAvail().  It was implemented inconsistently anyway.