Skip to content
Snippets Groups Projects
  1. Oct 30, 2023
  2. Oct 29, 2023
  3. Mar 14, 2023
  4. Feb 20, 2023
    • Rob Swindell's avatar
      Fix insufficient 'mode' string length in init() method · 440bc585
      Rob Swindell authored
      Limited to 6 chars, yet some values are as long as 12 chars.
      
      Also, eliminates this warning from RELEASE builds (only) using gcc version
      12.2.0 (Debian 12.2.0-14):
      js_uifc.c: In function ‘js_uifc_init’:
      sbbs.h:230:56: warning: writing 8 bytes into a region of size 7 [-Wstringop-overflow=]
        230 |                                         (ret)[JSSTSpos]=(char)JSSTSstrval[JSSTSpos]; \
            |                                         ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      sbbs.h:242:9: note: in expansion of macro ‘JSSTRING_TO_ASTRING’
        242 |         JSSTRING_TO_ASTRING((cx), JSVTSstr, (ret), (maxsize), (lenptr)); \
            |         ^~~~~~~~~~~~~~~~~~~
      js_uifc.c:609:17: note: in expansion of macro ‘JSVALUE_TO_ASTRING’
        609 |                 JSVALUE_TO_ASTRING(cx, argv[1], mode, 7, NULL);
            |                 ^~~~~~~~~~~~~~~~~~
      In file included from sbbs.h:255:
      /home/rswindell/sbbs/src/sbbs3/../xpdev/genwrap.h:77:20: note: destination object of size 7 allocated by ‘__builtin_alloca’
         77 | #define alloca(sz) __builtin_alloca(sz)
            |                    ^~~~~~~~~~~~~~~~~~~~
      sbbs.h:228:43: note: in expansion of macro ‘alloca’
        228 |                         if(((ret)=(char *)alloca((*JSSTSlenptr)+1))) { \
            |                                           ^~~~~~
      sbbs.h:242:9: note: in expansion of macro ‘JSSTRING_TO_ASTRING’
        242 |         JSSTRING_TO_ASTRING((cx), JSVTSstr, (ret), (maxsize), (lenptr)); \
            |         ^~~~~~~~~~~~~~~~~~~
      js_uifc.c:609:17: note: in expansion of macro ‘JSVALUE_TO_ASTRING’
        609 |                 JSVALUE_TO_ASTRING(cx, argv[1], mode, 7, NULL);
            |                 ^~~~~~~~~~~~~~~~~~
      440bc585
  5. Apr 04, 2021
  6. Apr 01, 2021
  7. Mar 31, 2021
  8. Feb 16, 2021
  9. Feb 15, 2021
  10. Jan 30, 2021
  11. Jan 29, 2021
  12. Nov 28, 2020
  13. Oct 15, 2020
  14. Sep 13, 2020
  15. Aug 16, 2020
  16. Apr 12, 2020
  17. Apr 01, 2020
  18. Feb 20, 2018
  19. Nov 17, 2017
  20. Jan 13, 2016
  21. Jan 11, 2016
  22. Jan 10, 2016
    • deuce's avatar
      Add a uifc.list.CTX class which allows WIN_SAV to finally work properly. · 7816e46c
      deuce authored
      Currently, the (previously undocumented) top, left, width, dflt, and bar
      parameters to uifc.list() are moved into this object and can no longer be
      passed in the function call.
      
      This is still only half-baked, so it will need a few weeks at least in CVS
      before it congeals enough to be stable.
      7816e46c
  23. Aug 13, 2014
  24. May 10, 2013
  25. May 07, 2013
Loading