Post B46meZS2X7nnt0Cy6S by ariadne@social.treehouse.systems
 (DIR) More posts by ariadne@social.treehouse.systems
 (DIR) Post #B463OptH9HyeIj4QPQ by ariadne@social.treehouse.systems
       1 likes, 0 repeats
       
       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)
       
 (DIR) Post #B46BUF9RSNGBj8in44 by pius@social.treehouse.systems
       0 likes, 0 repeats
       
       @ariadne out of curiosity is that a you shouldn't use strlcpy/cat generally or it's just bad in your particular case
       
 (DIR) Post #B46BYGbO0MZ3Nui7gu by ariadne@social.treehouse.systems
       0 likes, 0 repeats
       
       @pius strlcpy/strlcat improve upon the memory safety of strncpy/strncat, but are almost always the wrong answer to a problem.
       
 (DIR) Post #B46BfkcqmBR6WoxqOO by ariadne@social.treehouse.systems
       0 likes, 0 repeats
       
       @pius the correct approach is to use pascal-style strings, where the length is tracked
       
 (DIR) Post #B46Blrnb1EE8VtuHGC by pius@social.treehouse.systems
       0 likes, 0 repeats
       
       @ariadne cool
       
 (DIR) Post #B46d8U3y8FNgJwZeoS by noisytoot@berkeley.edu.pl
       0 likes, 0 repeats
       
       @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."
       
 (DIR) Post #B46d8UH5LTsAyci8G0 by ariadne@social.treehouse.systems
       0 likes, 0 repeats
       
       @noisytoot @pius C strings were always a mistake
       
 (DIR) Post #B46gY0XqnlOQADPh4K by ariadne@social.treehouse.systems
       0 likes, 0 repeats
       
       update: pkgconf no longer has any strlcpy/strlcat
       
 (DIR) Post #B46jp5SC6VDiAobSoy by syn_rst@norden.social
       0 likes, 0 repeats
       
       @ariadneThat was quick.Cool.
       
 (DIR) Post #B46meZAJb1cl01uoTY by rnd@toot.cat
       0 likes, 0 repeats
       
       @ariadne genuinely interested: what's wrong with strlcpy and strlcat?
       
 (DIR) Post #B46meZS2X7nnt0Cy6S by ariadne@social.treehouse.systems
       0 likes, 0 repeats
       
       @rnd silent truncation, but that isn't a practical concern in pkgconf I guess.