summaryrefslogtreecommitdiffstats
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)
commitf66e98baf99e12103edb876596c6931c744c50ed (patch)
tree788d7c1980199764f17cb4f39b88b7beedc446af
parentb6582079d155de64ebb161f0e9a334c7e980f448 (diff)
downloadtk-f66e98baf99e12103edb876596c6931c744c50ed.zip
tk-f66e98baf99e12103edb876596c6931c744c50ed.tar.gz
tk-f66e98baf99e12103edb876596c6931c744c50ed.tar.bz2
Fix StringReadPPM function from previous commit.
-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;