On Sat, 19 May 2018 14:07:56 -0700 Bart wrote: BVA> strlcpy() implementations typically scan for the end of the BVA> source argument passed to strlcpy(). Hence avoid passing an BVA> unterminated string to strlcpy().
I'm going to say -1, but for the patch and not the need to fix the issue. This code is treating 'a' and 't' hints the same. There should never be UTF-8 in an ascii string. Why not revert back to the original code for 'a' case and put UTF-8 handling where it belongs, under the 't' case. Robert ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders