summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/scramble.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/scramble.c b/tools/scramble.c
index a5c8caea3e..716b73b569 100644
--- a/tools/scramble.c
+++ b/tools/scramble.c
@@ -50,6 +50,8 @@ int main (int argc, char** argv)
50 } 50 }
51 fseek(file,0,SEEK_END); 51 fseek(file,0,SEEK_END);
52 length = ftell(file); 52 length = ftell(file);
53 length = (length + 3) & ~3; /* Round up to nearest 4 byte boundary */
54
53 fseek(file,0,SEEK_SET); 55 fseek(file,0,SEEK_SET);
54 inbuf = malloc(length); 56 inbuf = malloc(length);
55 outbuf = malloc(length); 57 outbuf = malloc(length);