diff --git a/html/libtiff.html b/html/libtiff.html
index 56535d97..d6b5eab3 100644
--- a/html/libtiff.html
+++ b/html/libtiff.html
@@ -518,9 +518,9 @@
TIFFGetField(tif, TIFFTAG_IMAGELENGTH, &imagelength);
buf = _TIFFmalloc(TIFFScanlineSize(tif));
for (row = 0; row < imagelength; row++)
- tiffreadscanline(tif, buf, row);
- _tifffree(buf);
- tiffclose(tif);
+ TIFFReadScanline(tif, buf, row, 0);
+ _TIFFfree(buf);
+ TIFFClose(tif);
}
}
for (row = 0; row < imagelength; row++)
for (s = 0; s < nsamples; s++)
- tiffreadscanline(tif, buf, row, s);
+ TIFFReadScanline(tif, buf, row, s);
...then problems would arise if RowsPerStrip was not one
@@ -601,8 +601,8 @@
buf = _TIFFmalloc(TIFFStripSize(tif));
for (strip = 0; strip < tiffnumberofstrips(tif); strip++)
tiffreadencodedstrip(tif, strip, buf, (tsize_t) -1);
- _tifffree(buf);
- tiffclose(tif);
+ _TIFFfree(buf);
+ TIFFClose(tif);
}
}