summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2014-01-04 22:15:02 +0100
committerFrank Gevaerts <frank@gevaerts.be>2014-01-04 22:15:02 +0100
commit61a096499b72f82dd8efc782e30cfeb1a31ef400 (patch)
treeddea129ca9ef76b5a687d7a98147a94e716da73a
parent646edc594f9b1ae27390576b4f6b1f08784e32d1 (diff)
downloadrockbox-61a0964.tar.gz
rockbox-61a0964.tar.bz2
rockbox-61a0964.zip
Fix data abort introduced by ef92ed4a.
Change-Id: I3e1bf2434238835d2d2b8f5f2a8f44b0df97b33d
-rw-r--r--apps/recorder/bmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c
index 142bf5dff2..3e7356a500 100644
--- a/apps/recorder/bmp.c
+++ b/apps/recorder/bmp.c
@@ -276,7 +276,7 @@ static unsigned int read_part_line(struct bmp_args *ba)
break;
case 15:
case 16:
- data = letoh16(*(uint16_t*)ibuf);
+ data = ibuf[0] | (ibuf[1]<<8);
component = (data << 3) & 0xf8;
component |= component >> 5;
buf->blue = component;