changeset: 2143:e9278f62fde8
user: Kris Maglione <jg_AT_suckless.org>
date: Fri May 25 06:25:41 2007 -0400
summary: Fix size calculation in realloc.
diff -r 3cd338e5759a -r e9278f62fde8 cmd/wmiir.c
--- a/cmd/wmiir.c Fri May 25 01:38:05 2007 -0400
+++ b/cmd/wmiir.c Fri May 25 06:25:41 2007 -0400
@@ -259,7 +259,7 @@ xls(int argc, char *argv[]) {
while(m.pos < m.end) {
if(nstat == mstat) {
mstat <<= 1;
- stat = ixp_erealloc(stat, mstat);
+ stat = erealloc(stat, sizeof(*stat) * mstat);
}
ixp_pstat(&m, &stat[nstat++]);
}
Received on Fri Jun 01 2007 - 03:10:42 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:57:10 UTC