From 90518e0ca2386a98b7e6950567dc8816dd455126 Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Sat, 18 Apr 2015 18:28:54 +0200 Subject: PAD: use announced PAD len for buffer --- src/mot-encoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mot-encoder.cpp') 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; -- cgit v1.2.3