diff options
author | Brad Fitzpatrick <bradfitz@golang.org> | 2013-05-06 09:59:33 -0700 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2013-05-06 09:59:33 -0700 |
commit | 1294f14f1fb632a963df2af39a97b496e49fe9a8 (patch) | |
tree | f221c9e30096b5413108cbab78a454b192510f48 | |
parent | a21b36da1cd1e00941536ee1b4e33f456a4500dc (diff) | |
download | go-git-1294f14f1fb632a963df2af39a97b496e49fe9a8.tar.gz |
image/png: fix error message to not return width twice
Fixes #5413
R=golang-dev, dave, adg
CC=golang-dev
https://golang.org/cl/9153045
-rw-r--r-- | src/pkg/image/png/writer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/image/png/writer.go b/src/pkg/image/png/writer.go index 093d47193b..629452cbfa 100644 --- a/src/pkg/image/png/writer.go +++ b/src/pkg/image/png/writer.go @@ -436,7 +436,7 @@ func Encode(w io.Writer, m image.Image) error { // also rejected. mw, mh := int64(m.Bounds().Dx()), int64(m.Bounds().Dy()) if mw <= 0 || mh <= 0 || mw >= 1<<32 || mh >= 1<<32 { - return FormatError("invalid image size: " + strconv.FormatInt(mw, 10) + "x" + strconv.FormatInt(mw, 10)) + return FormatError("invalid image size: " + strconv.FormatInt(mw, 10) + "x" + strconv.FormatInt(mh, 10)) } var e encoder |