tcrop: fix size calculation - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 8e4ac5f7fadafb278a0ef31d6082c30d6cdc8494
(DIR) parent 96898a81415df2368dfdbcf2b756982ba420a94f
(HTM) Author: Russ Cox <rsc@swtch.com>
Date: Thu, 11 Mar 2010 18:00:53 -0800
crop: fix size calculation
R=rsc
http://codereview.appspot.com/429042
Diffstat:
M src/cmd/draw/crop.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/src/cmd/draw/crop.c b/src/cmd/draw/crop.c
t@@ -56,7 +56,7 @@ crop(Memimage *m, ulong c)
m = n;
}
wpl = wordsperline(m->r, m->depth);
- bpl = wpl*sizeof(ulong);
+ bpl = wpl*sizeof(uint32);
buf = malloc(bpl);
if(buf == nil)
sysfatal("can't allocate buffer: %r");