From da7b83f9ea70cd9426d730aac3f41cae7a975dd5 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 7 Oct 2002 06:26:17 +0000 Subject: [PATCH] Don't need to NUL terminate after snprintf --- sys/kern/subr_bus.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 83a402f1d98e..cdd8581c08a8 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -2226,7 +2226,6 @@ sysctl_rman(SYSCTL_HANDLER_ARGS) if (res_idx == -1) { urm.rm_handle = (uintptr_t)rm; snprintf(urm.rm_descr, RM_TEXTLEN, "%s", rm->rm_descr); - urm.rm_descr[RM_TEXTLEN - 1] = '\0'; urm.rm_start = rm->rm_start; urm.rm_size = rm->rm_end - rm->rm_start + 1; urm.rm_type = rm->rm_type;