diff options
author | Neil Brown <neilb@suse.de> | 2005-06-14 08:42:13 +0200 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2005-06-14 08:42:13 +0200 |
commit | 8f23b0b3fa61cb112a974a711fe3c424482fe11d (patch) | |
tree | 83e83d147cc5d1da0a6a9b3189a42b0d937f2b0b /bitmap.c | |
parent | Add device files created with --auto to list of known device files. (diff) | |
download | mdadm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |