diff --git a/libtiff/tif_dir.c b/libtiff/tif_dir.c index 91adeedb..b0eace7e 100644 --- a/libtiff/tif_dir.c +++ b/libtiff/tif_dir.c @@ -1,4 +1,4 @@ -/* $Id: tif_dir.c,v 1.96 2007-11-23 20:49:43 fwarmerdam Exp $ */ +/* $Id: tif_dir.c,v 1.97 2007-11-23 21:14:43 fwarmerdam Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -1456,7 +1456,7 @@ TIFFUnlinkDirectory(TIFF* tif, uint16 dirn) tif->tif_rawdata = NULL; tif->tif_rawcc = 0; } - tif->tif_flags &= ~(TIFF_BEENWRITING|TIFF_BUFFERSETUP|TIFF_POSTENCODE|TIFF_BUF2WRITE); + tif->tif_flags &= ~(TIFF_BEENWRITING|TIFF_BUFFERSETUP|TIFF_POSTENCODE|TIFF_BUF4WRITE); TIFFFreeDirectory(tif); TIFFDefaultDirectory(tif); tif->tif_diroff = 0; /* force link on next write */