• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Fix whitespace trimming when reallocating in the encoder (wikitext, 0b85588)

Created 2/7/2008, updated 3/5/2024
  • snippets

Must update the "non_space" pointer when reallocating the buffer in the link encoder, otherwise we can crash.

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Fix "non_space" tracking when sanitizing links (wikitext, c0bccec)
Don't trim whitespace when rolling back (wikitext, 77476d9) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).