diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit
index 11e48cfc2971c4ef1e74dae8ee2584cddcf049f0..4711bd12f4e5123b8d9141db7f0eaa116ecf17b9 100755
--- a/git-hooks/sanitize-commit
+++ b/git-hooks/sanitize-commit
@@ -500,8 +500,8 @@ while (<DIFF>) {
                     if (!defined($cfg{giant})) {
                         &complain("Adding huge file (".formatSize($size)." > 2MiB)", "giant", 1);
                     }
-                } elsif ($size > 50000 && !$issrc && !defined($cfg{size})) {
-                    &complain("Warning: Adding big file (".formatSize($size)." > 50kB)", "size");
+                } elsif ($size > 51200 && !$issrc && !defined($cfg{size})) {
+                    &complain("Warning: Adding big file (".formatSize($size)." > 50KiB)", "size");
                 }
                 $size = 0;
                 $new_file = 1;