From Kevin Moule, fix to memory overwrite error.

This commit is contained in:
Robert Osfield
2005-01-07 20:24:36 +00:00
parent 3ff22d526c
commit 48ef6136f2

View File

@@ -236,7 +236,7 @@ class ReaderWriterPNM : public osgDB::ReaderWriter
unsigned char *src = data + width * height;
unsigned char *dst = data + width * height * 3;
while (src >= data)
while (src > data)
{
*(--dst) = *(--src);
*(--dst) = *src;