Skip to content
Snippets Groups Projects
  • Rob Swindell's avatar
    4a13b65d
    Safe string handling with config-load error messages · 4a13b65d
    Rob Swindell authored
    We were just trusting that the error strings would be shorter than 256 (usually), but since we're including paths and strerror() results, we really have no control over the length of the error strings. So enforce some healthy boundaries. This could explain the crashes that Divarin of Mutiny is seeing with SCFG on WinXP or maybe it was the truncsp(strerror()) stuff that was just removed as well. We'll see...
    4a13b65d
    History
    Safe string handling with config-load error messages
    Rob Swindell authored
    We were just trusting that the error strings would be shorter than 256 (usually), but since we're including paths and strerror() results, we really have no control over the length of the error strings. So enforce some healthy boundaries. This could explain the crashes that Divarin of Mutiny is seeing with SCFG on WinXP or maybe it was the truncsp(strerror()) stuff that was just removed as well. We'll see...