Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fsck_lfs don't use sprintf
details: https://anonhg.NetBSD.org/src/rev/d5033f46375e
branches: trunk
changeset: 328012:d5033f46375e
user: dholland <dholland%NetBSD.org@localhost>
date: Sun Mar 23 05:39:32 2014 +0000
description:
don't use sprintf
diffstat:
sbin/fsck_lfs/inode.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 1a691f6e4162 -r d5033f46375e sbin/fsck_lfs/inode.c
--- a/sbin/fsck_lfs/inode.c Sun Mar 23 05:38:14 2014 +0000
+++ b/sbin/fsck_lfs/inode.c Sun Mar 23 05:39:32 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inode.c,v 1.51 2013/06/18 18:18:58 christos Exp $ */
+/* $NetBSD: inode.c,v 1.52 2014/03/23 05:39:32 dholland Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -259,7 +259,8 @@
for (ap = ((ulfs_daddr_t *) bp->b_data) + nif; ap < aplim; ap++) {
if (*ap == 0)
continue;
- (void) sprintf(buf, "PARTIALLY TRUNCATED INODE I=%llu",
+ (void)snprintf(buf, sizeof(buf),
+ "PARTIALLY TRUNCATED INODE I=%llu",
(unsigned long long)idesc->id_number);
if (dofix(idesc, buf)) {
*ap = 0;
Home |
Main Index |
Thread Index |
Old Index