summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPPM.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-03 16:49:10 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-03 16:49:10 (GMT)
commit09b4cadaab77ddde8b0181bffaaa51f79b261ee5 (patch)
tree788d7c1980199764f17cb4f39b88b7beedc446af /generic/tkImgPPM.c
parent3205d71a865a9a055c5fc810f39104aad5f91673 (diff)
downloadtk-09b4cadaab77ddde8b0181bffaaa51f79b261ee5.zip
tk-09b4cadaab77ddde8b0181bffaaa51f79b261ee5.tar.gz
tk-09b4cadaab77ddde8b0181bffaaa51f79b261ee5.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 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;