summaryrefslogtreecommitdiffstats
path: root/bitmap.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2005-06-14 08:42:13 +0200
committerNeil Brown <neilb@suse.de>2005-06-14 08:42:13 +0200
commit8f23b0b3fa61cb112a974a711fe3c424482fe11d (patch)
tree83e83d147cc5d1da0a6a9b3189a42b0d937f2b0b /bitmap.c
parentAdd device files created with --auto to list of known device files. (diff)
downloadmdadm-8f23b0b3fa61cb112a974a711fe3c424482fe11d.tar.xz
mdadm-8f23b0b3fa61cb112a974a711fe3c424482fe11d.zip
Replace sprintf calls with snprintf
To quiet diet-libc Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Diffstat (limited to 'bitmap.c')
-rw-r--r--bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitmap.c b/bitmap.c
index 83a70bcc..c967af2f 100644
--- a/bitmap.c
+++ b/bitmap.c
@@ -66,7 +66,7 @@ const char *human_chunksize(unsigned long bytes)
i++;
}
- sprintf(buf, "%lu %s", bytes, suffixes[i]);
+ snprintf(buf, sizeof(buf), "%lu %s", bytes, suffixes[i]);
return buf;
}