Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/libnv/dist off by 1



details:   https://anonhg.NetBSD.org/src/rev/27661c210d90
branches:  trunk
changeset: 462076:27661c210d90
user:      sevan <sevan%NetBSD.org@localhost>
date:      Wed Jul 24 12:13:13 2019 +0000

description:
off by 1

diffstat:

 sys/external/bsd/libnv/dist/nvpair.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0b196479c7eb -r 27661c210d90 sys/external/bsd/libnv/dist/nvpair.c
--- a/sys/external/bsd/libnv/dist/nvpair.c      Wed Jul 24 11:58:00 2019 +0000
+++ b/sys/external/bsd/libnv/dist/nvpair.c      Wed Jul 24 12:13:13 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nvpair.c,v 1.9 2019/07/24 11:34:55 sevan Exp $ */
+/*     $NetBSD: nvpair.c,v 1.10 2019/07/24 12:13:13 sevan Exp $        */
 
 /*-
  * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
@@ -36,7 +36,7 @@
 #ifdef __FreeBSD__
 __FBSDID("$FreeBSD: head/sys/contrib/libnv/nvpair.c 335382 2018-06-19 18:43:02Z lwhsu $");
 #else
-__RCSID("$NetBSD: nvpair.c,v 1.9 2019/07/24 11:34:55 sevan Exp $");
+__RCSID("$NetBSD: nvpair.c,v 1.10 2019/07/24 12:13:13 sevan Exp $");
 #endif
 
 #include <sys/param.h>
@@ -1217,7 +1217,7 @@
        if (len < 0)
                return (NULL);
        nvp = nvpair_create_string(name, str);
-       kmem_free(str, len);
+       kmem_free(str, len+1);
        return (nvp);
 }
 #endif



Home | Main Index | Thread Index | Old Index