summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPPM.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-03 16:49:53 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-03 16:49:53 (GMT)
commit9d3a945a40e94b86f6bbe158df517abd5a14d2bb (patch)
treea1e5c1f4fe2df4b20bba6b8a5f35caca5685fcbf /generic/tkImgPPM.c
parent62e7527d944597cfa3e1bf558196350e453ab893 (diff)
parent09b4cadaab77ddde8b0181bffaaa51f79b261ee5 (diff)
downloadtk-9d3a945a40e94b86f6bbe158df517abd5a14d2bb.zip
tk-9d3a945a40e94b86f6bbe158df517abd5a14d2bb.tar.gz
tk-9d3a945a40e94b86f6bbe158df517abd5a14d2bb.tar.bz2
Fix StringReadPPM function from previous commit
Diffstat (limited to 'generic/tkImgPPM.c')
-rw-r--r--generic/tkImgPPM.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkImgPPM.c b/generic/tkImgPPM.c
index d9c06ab..79f7b25 100644
--- a/generic/tkImgPPM.c
+++ b/generic/tkImgPPM.c
@@ -489,7 +489,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;