From a607f0836dfe208955a7c9783e6e7c77a3a16c46 Mon Sep 17 00:00:00 2001 From: "nijtmans@users.sourceforge.net" 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