Skip to content
Snippets Groups Projects
  1. Feb 25, 2022
  2. Nov 23, 2021
  3. May 22, 2021
    • Rob Swindell's avatar
      Character 255 is a non-breaking space in CP437 · c5bdb264
      Rob Swindell authored
      Now IS_WHITESPACE() will return true for that char and this allows things like truncsp() to truncate trailing white-space (e.g. from a FILE_ID.DIZ), even if it contains a terminating 0xFF character for some unknown reason.
      c5bdb264
  4. Apr 05, 2021
    • Rob Swindell's avatar
      Allow SAFECAT to work on uchar arrays · 1111fb24
      Rob Swindell authored
      Caught by CID 331001
      
      The use of SAFECAT() with a typecast to a pointer is not going to work as expected. This change broke line-based telnet-gateway functionality (unconfirmed, but pretty obvious).
      1111fb24
  5. Apr 04, 2021
    • Rob Swindell's avatar
      A poll() failure with EINTR does not mean a socket is closed. · fcf58640
      Rob Swindell authored
      This won't impact Synchronet as it has a separate signal handling
      thread, but we still need to behave properly for processes that
      don't.  I'm also saying that ENOMEM does not indicate a disconnection,
      though it may be better to pretend it was disconnected...
      fcf58640
  6. Feb 15, 2021
  7. Nov 21, 2020
  8. Nov 06, 2020
    • Rob Swindell's avatar
      Replace ctype.h function calls with new MSVC-safe XPDEV macros · 8a7b7308
      Rob Swindell authored
      I'm fed-up with MSVC assertions in ctype functions (e.g. isdigit, isprint, isspace, etc.) when called with out-of-range (e.g. negative) values.
      
      This problem only affects MSVC debug builds, but if you run them (like I do), these things are like little time bombs that can drive you crazy (knocking your board out of service).
      
      The new macros names are bit more descriptive as well.
      8a7b7308
  9. Aug 16, 2020
  10. Aug 15, 2020
    • rswindell's avatar
      Resolve GCC compile warnings on 32-bit Linux by insuring that PRId/uOFF · 278f43db
      rswindell authored
      expands to "ld"/"lu", respectively since off_t is a long (not an int):
      examples:
      ftpsrvr.c:1374:77: warning: format '%d' expects argument of type 'int', but argument 6 has type 'off_t {aka long int}' [-Wformat=]
         lprintf(LOG_WARNING, "%04d <%s> !DATA cannot send file (%s) with size of %"PRIdOFF" bytes"
      websrvr.c:6063:45: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'off_t {aka long int}' [-Wformat=]
         lprintf(LOG_INFO,"%04d Sending file: %s (%"PRIuOFF" bytes)"
      278f43db
  11. May 26, 2020
  12. May 25, 2020
  13. Apr 17, 2020
  14. Mar 31, 2020
  15. Jul 16, 2019
  16. Jul 09, 2019
  17. Jan 31, 2019
  18. Aug 28, 2018
  19. Mar 09, 2018
  20. Feb 20, 2018
  21. Dec 08, 2017
  22. Aug 26, 2017
    • rswindell's avatar
      c_unescape_char/str now supports \ddd (for decimal character literals, · ed3b28f1
      rswindell authored
      ala Synchronet text.dat) by default and octal format only if
      C_UNESCAPE_OCTAL_SUPPORT is defined.
      \X## is no longer supported (must use the C-standard \x##
      Only 2 hex digits are now supported, longer streams of valid hex digits will
      not be parsed as a literal character (unlike the C standard)
      ed3b28f1
  23. Dec 08, 2016
  24. Nov 19, 2016
  25. Dec 04, 2015
  26. Aug 22, 2015
  27. Apr 04, 2014
  28. Mar 18, 2014
  29. Feb 06, 2014
  30. Sep 04, 2013
  31. Feb 18, 2012
Loading