From ad4c68709570d203d7077cdfb9567d8ec6a0f8a1 Mon Sep 17 00:00:00 2001 From: xtraeme Date: Sat, 21 Jul 2007 00:05:54 +0000 Subject: [PATCH] Re-add a strlcpy() to copy the new description in edata->desc, if the object in dictionary was updated succesfully. --- sys/dev/sysmon/sysmon_envsys.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/dev/sysmon/sysmon_envsys.c b/sys/dev/sysmon/sysmon_envsys.c index e41b5711dda5..226e95d70750 100644 --- a/sys/dev/sysmon/sysmon_envsys.c +++ b/sys/dev/sysmon/sysmon_envsys.c @@ -1,4 +1,4 @@ -/* $NetBSD: sysmon_envsys.c,v 1.32 2007/07/20 14:59:58 xtraeme Exp $ */ +/* $NetBSD: sysmon_envsys.c,v 1.33 2007/07/21 00:05:54 xtraeme Exp $ */ /*- * Copyright (c) 2007 The NetBSD Foundation, Inc. @@ -75,7 +75,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys.c,v 1.32 2007/07/20 14:59:58 xtraeme Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys.c,v 1.33 2007/07/21 00:05:54 xtraeme Exp $"); #include #include @@ -1156,6 +1156,11 @@ sme_userset_dictionary(struct sysmon_envsys *sme, prop_dictionary_t udict, dict, "description", blah); + if (!error) + (void)strlcpy(edata->desc, + blah, + sizeof(edata->desc)); + break; }