1
0
mirror of https://github.com/golang/go synced 2024-11-25 01:08:02 -07: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;
else
maxlibdir *= 2;
p = realloc(libdir, maxlibdir);
p = realloc(libdir, maxlibdir * sizeof(*p));
if (p == nil) {
print("too many -L's: %d\n", nlibdir);
usage();