--- src/usr.bin/ruptime/ruptime.c 2005/08/23 21:22:11 1.9 +++ src/usr.bin/ruptime/ruptime.c 2005/09/11 23:32:08 1.10 @@ -132,8 +132,8 @@ main(int argc, char *argv[]) if (LEFTEARTH(((struct whod *)buf)->wd_recvtime)) continue; if (nhosts == hspace) { - if ((hs = - realloc(hs, (hspace += 40) * sizeof(*hs))) == NULL) + hspace += 40; + if ((hs = realloc(hs, hspace * sizeof(*hs))) == NULL) err(1, NULL); hsp = hs + nhosts; }