diff options
Diffstat (limited to 'adapter/img/stbi.nim')
-rw-r--r-- | adapter/img/stbi.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adapter/img/stbi.nim b/adapter/img/stbi.nim index 1bf634cc..e4580d5c 100644 --- a/adapter/img/stbi.nim +++ b/adapter/img/stbi.nim @@ -106,7 +106,7 @@ proc main() = stdout.write("Cha-Control: ConnectionError 1 stbi error " & $stbi_failure_reason()) elif targetWidth != -1 and targetHeight != -1: - let p2 = cast[ptr uint8](alloc(targetWidth * targetWidth * 4)) + let p2 = cast[ptr uint8](alloc(targetWidth * targetHeight * 4)) doAssert stbir_resize_uint8(p, x, y, 0, p2, targetWidth, targetHeight, 0, 4) == 1 stdout.write("Cha-Image-Dimensions: " & $targetWidth & "x" & |