Skip to content
  • Tristan Matthews's avatar
    hds: fix memory leak and buffer probing · cc64d3fc
    Tristan Matthews authored
    Only 200 bytes are peeked but FromCharset was being called with 512.
    The char * returned by FromCharset was not being freed, and
    strstr was being called on a buffer that was not NULL terminated
    (in the non utf-8 case).
    cc64d3fc