$OpenBSD: patch-libtiff_tif_dirinfo_c,v 1.4 2010/06/30 17:10:08 naddy Exp $
--- libtiff/tif_dirinfo.c.orig	Sun Jun 27 01:01:31 2010
+++ libtiff/tif_dirinfo.c	Sun Jun 27 01:01:51 2010
@@ -873,7 +873,7 @@ _TIFFCreateAnonFieldInfo(TIFF *tif, ttag_t tag, TIFFDa
 	 * note that this name is a special sign to TIFFClose() and
 	 * _TIFFSetupFieldInfo() to free the field
 	 */
-	sprintf(fld->field_name, "Tag %d", (int) tag);
+	snprintf(fld->field_name, 32, "Tag %d", (int) tag);
 
 	return fld;    
 }
