aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libfsimage
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-06-12 15:41:15 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-06-12 15:41:15 +0100
commit461990971f96763861501483b0316fb13b670fa4 (patch)
treefc40bc1aa8c67a4a3e1c7bfef3b75f2a4559c339 /tools/libfsimage
parent697376dd738b51c7046e00267a1844e0d02bbf62 (diff)
downloadxen-461990971f96763861501483b0316fb13b670fa4.tar.gz
xen-461990971f96763861501483b0316fb13b670fa4.tar.bz2
xen-461990971f96763861501483b0316fb13b670fa4.zip
tools: replace sprintf with snprintf where applicable
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Diffstat (limited to 'tools/libfsimage')
-rw-r--r--tools/libfsimage/zfs/fsys_zfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libfsimage/zfs/fsys_zfs.c b/tools/libfsimage/zfs/fsys_zfs.c
index f9f94d808a..d6f9880bab 100644
--- a/tools/libfsimage/zfs/fsys_zfs.c
+++ b/tools/libfsimage/zfs/fsys_zfs.c
@@ -1336,7 +1336,7 @@ zfs_open(fsi_file_t *ffi, char *filename)
char zfs_bootstr[] = "zfs-bootfs=";
char zfs_bootpath[] = ",bootpath='";
- sprintf(temp, "%llu", (unsigned long long)
+ snprintf(temp, sizeof(temp), "%llu", (unsigned long long)
current_bootfs_obj);
alloc_size = strlen(zfs_bootstr) +
strlen(current_rootpool) +