mirror of
https://github.com/golang/go
synced 2024-11-12 02:50:25 -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:
parent
5aea33742a
commit
a142ed99d5
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user