From 09b4cadaab77ddde8b0181bffaaa51f79b261ee5 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Sun, 3 Nov 2013 16:49:10 +0000 Subject: Fix StringReadPPM function from previous commit. --- generic/tkImgPPM.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generic/tkImgPPM.c b/generic/tkImgPPM.c index b476ac6..d71db25 100644 --- a/generic/tkImgPPM.c +++ b/generic/tkImgPPM.c @@ -485,7 +485,7 @@ StringReadPPM( * image being read. */ { int fileWidth, fileHeight, maxIntensity; - int nLines, nBytes, h, type, count, dataSize, bytesPerChannel = 2; + int nLines, nBytes, h, type, count, dataSize, bytesPerChannel = 1; unsigned char *pixelPtr, *dataBuffer; Tk_PhotoImageBlock block; -- cgit v0.12