diff options
author | Shenghou Ma <minux.ma@gmail.com> | 2012-03-03 04:47:42 +0800 |
---|---|---|
committer | Shenghou Ma <minux.ma@gmail.com> | 2012-03-03 04:47:42 +0800 |
commit | a142ed99d525d93b91f9f3ea6ef9b7e03a1a88ae (patch) | |
tree | 18a6eb62ef6e09959b7871903651ff7bd06fff3d | |
parent | 5aea33742a946b177590d44e6942ff781a18f111 (diff) | |
download | go-a142ed99d525d93b91f9f3ea6ef9b7e03a1a88ae.tar.gz go-a142ed99d525d93b91f9f3ea6ef9b7e03a1a88ae.zip |
fix build for FreeBSD/amd64
R=rsc, golang-dev, iant
CC=golang-dev
https://golang.org/cl/5732043
-rw-r--r-- | src/cmd/ld/lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/ld/lib.c b/src/cmd/ld/lib.c index 94ad3504db..4a100cac3a 100644 --- a/src/cmd/ld/lib.c +++ b/src/cmd/ld/lib.c @@ -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(); |