Skip to content
Snippets Groups Projects
  1. Jul 10, 2016
  2. Jul 02, 2016
    • Kevin Klues's avatar
      Fixed off-by-one error in 'name' of add_note() function. · e3e0d6db
      Kevin Klues authored
      Previously, when assigning 'name' as a string, it's length was specified
      using the full length of 'namesz'. However, this length includes the
      trailing '\0' of the underlying char[]. This ultimately causes the C++
      string that is created to (incorrectly) contain the '\0' character as
      well. This leads to problems where e.g. the following will return false,
      even when 'name' itself actually contains the string "GNU\0":
      
        if (name == "GNU") {
          return true;
        }
        return false;
      
      To fix this, we should only include the length of the string minus the
      trailing '\0'.
      e3e0d6db
  3. Apr 23, 2016
  4. Sep 26, 2015
  5. Aug 22, 2015
  6. Apr 30, 2015
  7. Mar 18, 2015
  8. Feb 24, 2015
  9. Feb 21, 2015
  10. Feb 13, 2015
  11. Jan 19, 2015
  12. Dec 03, 2014
  13. Nov 22, 2014
  14. Nov 15, 2014
  15. Nov 14, 2014
  16. Nov 13, 2014
Loading