diff options
-rw-r--r-- | apps/recorder/bmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c index a35884c94c..6323cef681 100644 --- a/apps/recorder/bmp.c +++ b/apps/recorder/bmp.c | |||
@@ -185,7 +185,7 @@ int read_bmp_file(char* filename, | |||
185 | width = readlong(fh.Width); | 185 | width = readlong(fh.Width); |
186 | 186 | ||
187 | /* PaddedWidth = ((width+31)&(~0x1f))/8; */ | 187 | /* PaddedWidth = ((width+31)&(~0x1f))/8; */ |
188 | PaddedWidth = ((width+7)&(~0x7)); | 188 | PaddedWidth = ((width+3)&(~0x3)); |
189 | size = PaddedWidth*readlong(fh.Height); | 189 | size = PaddedWidth*readlong(fh.Height); |
190 | 190 | ||
191 | bmp = (unsigned char *)malloc(size); | 191 | bmp = (unsigned char *)malloc(size); |