CVSROOT: /cvs Module name: src Changes by: bl...@cvs.openbsd.org 2020/12/07 11:28:09
Modified files: usr.sbin/btrace: btrace.c ksyms.c Log message: In btrace(8) handle snprintf(3) errors correctly. If snprintf fails, buffer is unchanged; initialize it with empty string. snprintf may return negative value or the length that would have been written; check and calculate remaining size. snprintf writes size - 1 characters; pass buffer size as length. OK mpi@