--- ray/src/common/tmapcolrs.c 2016/02/02 18:02:32 3.31 +++ ray/src/common/tmapcolrs.c 2019/07/19 17:37:56 3.33 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: tmapcolrs.c,v 3.31 2016/02/02 18:02:32 greg Exp $"; +static const char RCSid[] = "$Id: tmapcolrs.c,v 3.33 2019/07/19 17:37:56 greg Exp $"; #endif /* * Routines for tone mapping on Radiance RGBE and XYZE pictures. @@ -19,6 +19,7 @@ static const char RCSid[] = "$Id: tmapcolrs.c,v 3.31 2 #include "paths.h" #endif #include "tmprivat.h" +#include "rtio.h" #include "resolu.h" #define GAMTSZ 4096 @@ -151,7 +152,7 @@ headline( /* grok a header line */ void *vrh ) { - char fmt[32]; + char fmt[MAXFMTLEN]; struct radhead *rh = vrh; if (formatval(fmt, s)) {