Skip to content
Snippets Groups Projects
  1. Jun 30, 2024
  2. Jun 29, 2024
  3. Jun 27, 2024
  4. Jun 25, 2024
  5. Jun 23, 2024
  6. Jun 21, 2024
    • Rob Swindell's avatar
      Fix new small memory leak (no need to use strdup here) · 726a0852
      Rob Swindell authored
      Fix CID 497098
      726a0852
    • Rob Swindell's avatar
      Fix getnodedat() error handling and usage · e7642321
      Rob Swindell authored
      If a file descriptor is passed to getnodedat() and the lock retry counter was
      reached, the file would be closed, but the passed file descriptor reference
      would not be set to -1. This could result in exceptions (from subsequent read
      attempts on the referenced file descriptor) in cases where the node.dab could
      not be locked or read by getnodedat() and was thus closed.
      
      The set/get_node_* helper functions (used by MQTT) were not initializing the
      node.dab file descriptor (i.e. to -1), so it's possible getnodedat() could
      try to read from and close an invalid/wrong open file descriptor. If the local
      variable happened to be initialized to a value <= 0, then, no problem, but
      this is undefined behavior (UB).
      e7642321
    • Rob Swindell's avatar
      Add new "Search Pending Files" operation · 6d7b60d0
      Rob Swindell authored
      Sort of the opposite of the "Offline Files" search, find files copied into
      the directory storage paths but not yet added to the filebase, with a
      "Add File..." option (and tagging support) along with DELete files option.
      
      Auto-ignore listing files (e.g. FILES.BBS, etc.) when searchign for new
      files to add to a directory's filebase.
      
      If an argument is passed to fileman.js, use that as the UIFC mode (for testing
      purposes only).
      
      Fix case-sensitive file compares (on *nix OSes) when adding files (now
      case-insensitive).
      
      Fix issue with get file paths for files not yet in a filebase (using
      FileBath.get_path unnecessarily).
      
      Display virtual paths to files in many place, when available (> SBBS v3.19).
      6d7b60d0
    • Rob Swindell's avatar
      Use the new uifc_t.restore() method when decrementing the save_num · 16525f87
      Rob Swindell authored
      This is the proper way to manually-restore the most recently saved
      window (via the WIN_SAV mode flag to the list() method).
      
      I wanted something that was backward comaptible with earlier builds
      of SBBS, so just doing a magic thing when decrementing the save_num
      rather than adding a new method seemed the seamless way to do it.
      16525f87
    • Rob Swindell's avatar
      Introduce a restore() uifc_api method for restoring a saved window buffer · 1c85a913
      Rob Swindell authored
      This allows for menu options on an "active" list (with both WIN_SAVE and
      WIN_ACT mode flags) to close the window and restore the most recently saved
      window.
      
      Also, for the range check on the save buffer count in ulist(), if we've
      hit the bounds, don't *just* beep (though, that was useful), but turn off the
      WIN_SAV mode flag so we don't overflow the sav[] array and corrupt the heap!
      1c85a913
    • Rob Swindell's avatar
      Pretend we know the screen width and that it's 132 columns wide · 687a6731
      Rob Swindell authored
      ... for UIFC apps/scripts that have screen-width dependant behavior.
      687a6731
    • Rob Swindell's avatar
      Fix small memory leak when loading lib "Auto-Add Subs" feature enabled · 26920170
      Rob Swindell authored
      caught by valgrind
      26920170
  7. Jun 20, 2024
  8. Jun 19, 2024
    • Rob Swindell's avatar
      Add ability to add files, display/edit extended descriptions · 33a0d94b
      Rob Swindell authored
      (yes, I know, unzip for DIZ can corrupt the TUI display when adding files)
      
      Add ability to display and edit extended file descriptions (including
      inserting and deleting lines.
      
      Fixed bug with moving files between dirs.
      
      F2 is now just a shortcut for renaming files, ENTER is the main edit/display
      option key now.
      
      This really requires an updated sbbs/jsexec to work fully correct (e.g.
      display/edit extended descriptions that contain blank lines).
      33a0d94b
    • Rob Swindell's avatar
      Use new uifc.list mode flag WIN_BLANKOPTS · 91059084
      Rob Swindell authored
      uifc option lists are always NULL-terminated string lists (not static
      arrays of char arrays, as is often used in other UIFC utils), so grow
      the ability to have blank options (list items).
      
      This was needed for fileman.js to accurately edit extended file
      descriptions that contain blank lines.
      91059084
    • Rob Swindell's avatar
      Add WIN_BLANKOPTS list() option, to support options/lists with blank lines · 521e0f48
      Rob Swindell authored
      This requires that the option list be NULL-terminated, when used.
      
      For use with js_uifc.c (JS uifc.list method).
      
      For some reason, this exposed an issue where "(null)" would be printed for
      the last line when combined with WIN_XTR mode flag, so worked around that
      bug too.
      521e0f48
  9. Jun 18, 2024
  10. Jun 16, 2024
  11. Jun 15, 2024
  12. Jun 14, 2024
    • Rob Swindell's avatar
      Open the quote file in "binary" mode (only applicable on Windows) · 22f5dd46
      Rob Swindell authored
      If the quote file contained a Ctrl-Z (ASCII 26) char, it would be truncated
      at that point. Some UTF-8 messages that include a "right arrow" unicode code
      point are translated to ASCII Ctrl-Z (ASCII 26) char, which is interpretted
      by Windows as "EOF" (end of file) marker for files open in "text mode" and
      the file won't be read beyond that char. Open the file in binary mode to
      more closely match the *nix fopen() before.
      22f5dd46
  13. Jun 10, 2024
Loading