Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ufs Fix wrong variable in snprintf. From Henning Pet...
details: https://anonhg.NetBSD.org/src/rev/428a0349d911
branches: trunk
changeset: 778433:428a0349d911
user: wiz <wiz%NetBSD.org@localhost>
date: Mon Mar 26 11:03:43 2012 +0000
description:
Fix wrong variable in snprintf. From Henning Petersen in PR 46259,
ok manu@
diffstat:
sys/ufs/ufs/ufs_extattr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 50f840706d30 -r 428a0349d911 sys/ufs/ufs/ufs_extattr.c
--- a/sys/ufs/ufs/ufs_extattr.c Mon Mar 26 06:49:15 2012 +0000
+++ b/sys/ufs/ufs/ufs_extattr.c Mon Mar 26 11:03:43 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ufs_extattr.c,v 1.37 2012/03/13 18:41:14 elad Exp $ */
+/* $NetBSD: ufs_extattr.c,v 1.38 2012/03/26 11:03:43 wiz Exp $ */
/*-
* Copyright (c) 1999-2002 Robert N. M. Watson
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_extattr.c,v 1.37 2012/03/13 18:41:14 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_extattr.c,v 1.38 2012/03/26 11:03:43 wiz Exp $");
#ifdef _KERNEL_OPT
#include "opt_ffs.h"
@@ -133,7 +133,7 @@
attr = kmem_alloc(len, KM_SLEEP);
- snprintf(attr, len, "%s.%s", namespace, attr);
+ snprintf(attr, len, "%s.%s", namespace, attrname);
return attr;
}
Home |
Main Index |
Thread Index |
Old Index