diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-06-12 15:41:15 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-06-12 15:41:15 +0100 |
commit | 461990971f96763861501483b0316fb13b670fa4 (patch) | |
tree | fc40bc1aa8c67a4a3e1c7bfef3b75f2a4559c339 /tools/libfsimage | |
parent | 697376dd738b51c7046e00267a1844e0d02bbf62 (diff) | |
download | xen-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.c | 2 |
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) + |