diff options
Diffstat (limited to 'src/pkg/image/png/writer.go')
-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 093d47193..629452cbf 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 |