Module Name: src
Committed By: dholland
Date: Sun Mar 23 05:10:56 UTC 2014
Modified Files:
src/sbin/newfs_sysvbfs: newfs_sysvbfs.c
Log Message:
don't use sprintf
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sbin/newfs_sysvbfs/newfs_sysvbfs.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/newfs_sysvbfs/newfs_sysvbfs.c
diff -u src/sbin/newfs_sysvbfs/newfs_sysvbfs.c:1.8 src/sbin/newfs_sysvbfs/newfs_sysvbfs.c:1.9
--- src/sbin/newfs_sysvbfs/newfs_sysvbfs.c:1.8 Mon Aug 29 14:35:03 2011
+++ src/sbin/newfs_sysvbfs/newfs_sysvbfs.c Sun Mar 23 05:10:56 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: newfs_sysvbfs.c,v 1.8 2011/08/29 14:35:03 joerg Exp $ */
+/* $NetBSD: newfs_sysvbfs.c,v 1.9 2014/03/23 05:10:56 dholland Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -220,10 +220,10 @@ bfs_newfs(int fd, uint32_t nsectors)
/* dirent table */
memset(buf, 0, BFS_BSIZE);
dirent->inode = BFS_ROOT_INODE;
- sprintf(dirent->name, ".");
+ strcpy(dirent->name, ".");
dirent++;
dirent->inode = BFS_ROOT_INODE;
- sprintf(dirent->name, "..");
+ strcpy(dirent->name, "..");
if (write(fd, buf, BFS_BSIZE) < 0) {
perror("write dirent");
return -1;