1
0
mirror of https://github.com/golang/go synced 2024-09-24 17:10:13 -06:00

fix build for FreeBSD/amd64

R=rsc, golang-dev, iant
CC=golang-dev
https://golang.org/cl/5732043
This commit is contained in:
Shenghou Ma 2012-03-03 04:47:42 +08:00
parent 5aea33742a
commit a142ed99d5

View File

@ -59,7 +59,7 @@ Lflag(char *arg)
maxlibdir = 8; maxlibdir = 8;
else else
maxlibdir *= 2; maxlibdir *= 2;
p = realloc(libdir, maxlibdir); p = realloc(libdir, maxlibdir * sizeof(*p));
if (p == nil) { if (p == nil) {
print("too many -L's: %d\n", nlibdir); print("too many -L's: %d\n", nlibdir);
usage(); usage();