Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. only a few places left to convert to pkgconf_buffer_t in pkgconf now :)

only a few places left to convert to pkgconf_buffer_t in pkgconf now :)

Scheduled Pinned Locked Moved Uncategorized
6 Posts 3 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ariadne@social.treehouse.systemsA This user is from outside of this forum
    ariadne@social.treehouse.systemsA This user is from outside of this forum
    ariadne@social.treehouse.systems
    wrote last edited by
    #1

    only a few places left to convert to pkgconf_buffer_t in pkgconf now πŸ™‚

    and then we will be able to stop using strlcpy/strlcat (which was a bad engineering decision, but i was also much younger then)

    pius@social.treehouse.systemsP 1 Reply Last reply
    0
    • ariadne@social.treehouse.systemsA ariadne@social.treehouse.systems

      only a few places left to convert to pkgconf_buffer_t in pkgconf now πŸ™‚

      and then we will be able to stop using strlcpy/strlcat (which was a bad engineering decision, but i was also much younger then)

      pius@social.treehouse.systemsP This user is from outside of this forum
      pius@social.treehouse.systemsP This user is from outside of this forum
      pius@social.treehouse.systems
      wrote last edited by
      #2

      @ariadne out of curiosity is that a you shouldn't use strlcpy/cat generally or it's just bad in your particular case

      ariadne@social.treehouse.systemsA 1 Reply Last reply
      0
      • pius@social.treehouse.systemsP pius@social.treehouse.systems

        @ariadne out of curiosity is that a you shouldn't use strlcpy/cat generally or it's just bad in your particular case

        ariadne@social.treehouse.systemsA This user is from outside of this forum
        ariadne@social.treehouse.systemsA This user is from outside of this forum
        ariadne@social.treehouse.systems
        wrote last edited by
        #3

        @pius strlcpy/strlcat improve upon the memory safety of strncpy/strncat, but are almost always the wrong answer to a problem.

        ariadne@social.treehouse.systemsA noisytoot@berkeley.edu.plN 2 Replies Last reply
        0
        • ariadne@social.treehouse.systemsA ariadne@social.treehouse.systems

          @pius strlcpy/strlcat improve upon the memory safety of strncpy/strncat, but are almost always the wrong answer to a problem.

          ariadne@social.treehouse.systemsA This user is from outside of this forum
          ariadne@social.treehouse.systemsA This user is from outside of this forum
          ariadne@social.treehouse.systems
          wrote last edited by
          #4

          @pius the correct approach is to use pascal-style strings, where the length is tracked

          pius@social.treehouse.systemsP 1 Reply Last reply
          0
          • ariadne@social.treehouse.systemsA ariadne@social.treehouse.systems

            @pius the correct approach is to use pascal-style strings, where the length is tracked

            pius@social.treehouse.systemsP This user is from outside of this forum
            pius@social.treehouse.systemsP This user is from outside of this forum
            pius@social.treehouse.systems
            wrote last edited by
            #5

            @ariadne cool

            1 Reply Last reply
            0
            • ariadne@social.treehouse.systemsA ariadne@social.treehouse.systems

              @pius strlcpy/strlcat improve upon the memory safety of strncpy/strncat, but are almost always the wrong answer to a problem.

              noisytoot@berkeley.edu.plN This user is from outside of this forum
              noisytoot@berkeley.edu.plN This user is from outside of this forum
              noisytoot@berkeley.edu.pl
              wrote last edited by
              #6
              @ariadne @pius I was reading the string_copying(7) man page to remind me of what the different string copying functions do, and apparently it recommends using strtcpy and stpecpy instead of strlcpy and strlcat, both of which appear to have just been made up by the authors of that man page since it also says "This function is not provided by any library; see EXAMPLES for a reference implementation."
              1 Reply Last reply
              1
              0
              • R relay@relay.an.exchange shared this topic
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups