commit 8e4ac5f7fadafb278a0ef31d6082c30d6cdc8494
parent 96898a81415df2368dfdbcf2b756982ba420a94f
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:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cmd/draw/crop.c b/src/cmd/draw/crop.c
@@ -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");