summaryrefslogtreecommitdiff
path: root/package/xfsprogs/patches/patch-libxfs_cache_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/xfsprogs/patches/patch-libxfs_cache_c')
-rw-r--r--package/xfsprogs/patches/patch-libxfs_cache_c11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/xfsprogs/patches/patch-libxfs_cache_c b/package/xfsprogs/patches/patch-libxfs_cache_c
new file mode 100644
index 000000000..b1a2b1eb1
--- /dev/null
+++ b/package/xfsprogs/patches/patch-libxfs_cache_c
@@ -0,0 +1,11 @@
+--- xfsprogs-3.0.0.orig/libxfs/cache.c 2009-02-04 23:29:25.000000000 +0100
++++ xfsprogs-3.0.0/libxfs/cache.c 2009-12-12 00:52:32.000000000 +0100
+@@ -582,7 +582,7 @@ cache_report(
+ cache->c_mrus[i].cm_count * 100 / cache->c_count);
+
+ /* report hash bucket lengths */
+- bzero(hash_bucket_lengths, sizeof(hash_bucket_lengths));
++ memset(hash_bucket_lengths, 0, sizeof(hash_bucket_lengths));
+
+ for (i = 0; i < cache->c_hashsize; i++) {
+ count = cache->c_hash[i].ch_count;