diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-11-03 16:49:53 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-11-03 16:49:53 (GMT) |
commit | eacd9342d373d34a229e0a604c3076a9183a5601 (patch) | |
tree | a1e5c1f4fe2df4b20bba6b8a5f35caca5685fcbf | |
parent | 7ded508e048d5e2df7f3c81b053ceeb9521f61ec (diff) | |
parent | f66e98baf99e12103edb876596c6931c744c50ed (diff) | |
download | tk-eacd9342d373d34a229e0a604c3076a9183a5601.zip tk-eacd9342d373d34a229e0a604c3076a9183a5601.tar.gz tk-eacd9342d373d34a229e0a604c3076a9183a5601.tar.bz2 |
Fix StringReadPPM function from previous commit
-rw-r--r-- | generic/tkImgPPM.c | 2 |
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; |