Module Name: src Committed By: riastradh Date: Tue Aug 30 22:37:36 UTC 2022
Modified Files: src/sys/ddb: db_sym.c Log Message: ddb(4): Use db_num_to_strbuf in db_symstr. Simplifies it and will make safer to use. To generate a diff of this commit: cvs rdiff -u -r1.69 -r1.70 src/sys/ddb/db_sym.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/ddb/db_sym.c diff -u src/sys/ddb/db_sym.c:1.69 src/sys/ddb/db_sym.c:1.70 --- src/sys/ddb/db_sym.c:1.69 Mon Dec 13 03:17:50 2021 +++ src/sys/ddb/db_sym.c Tue Aug 30 22:37:36 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: db_sym.c,v 1.69 2021/12/13 03:17:50 kre Exp $ */ +/* $NetBSD: db_sym.c,v 1.70 2022/08/30 22:37:36 riastradh Exp $ */ /* * Mach Operating System @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: db_sym.c,v 1.69 2021/12/13 03:17:50 kre Exp $"); +__KERNEL_RCSID(0, "$NetBSD: db_sym.c,v 1.70 2022/08/30 22:37:36 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_ddbparam.h" @@ -372,7 +372,7 @@ db_symstr(char *buf, size_t buflen, db_e } } out: - strlcpy(buf, db_num_to_str(off), buflen); + db_num_to_strbuf(off, buf, buflen); #endif }