summaryrefslogtreecommitdiffstats
path: root/src/mot-encoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mot-encoder.cpp')
-rw-r--r--src/mot-encoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mot-encoder.cpp b/src/mot-encoder.cpp
index ea1e230..bc5b736 100644
--- a/src/mot-encoder.cpp
+++ b/src/mot-encoder.cpp
@@ -1062,7 +1062,7 @@ void writeMotPAD(int output_fd,
unsigned short int padlen)
{
- unsigned char pad[128];
+ unsigned char pad[padlen];
int xpadlengthmask, i, j, k;
unsigned short int crc;