diff options
author | Russ Cox <rsc@swtch.com> | 2010-03-11 18:00:53 -0800 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2010-03-11 18:00:53 -0800 |
commit | 8e4ac5f7fadafb278a0ef31d6082c30d6cdc8494 (patch) | |
tree | 46cd1b99400bf1c006cd37d9ab3cdfff00e38243 /src/cmd | |
parent | 96898a81415df2368dfdbcf2b756982ba420a94f (diff) | |
download | plan9port-8e4ac5f7fadafb278a0ef31d6082c30d6cdc8494.tar.gz plan9port-8e4ac5f7fadafb278a0ef31d6082c30d6cdc8494.tar.bz2 plan9port-8e4ac5f7fadafb278a0ef31d6082c30d6cdc8494.zip |
crop: fix size calculation
R=rsc
http://codereview.appspot.com/429042
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/draw/crop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/draw/crop.c b/src/cmd/draw/crop.c index e0710d65..6ec03b79 100644 --- 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"); |