--- ray/src/common/tmapcolrs.c 2016/02/02 18:02:32 3.31 +++ ray/src/common/tmapcolrs.c 2019/12/28 18:05:14 3.34 @@ -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.34 2019/12/28 18:05:14 greg Exp $"; #endif /* * Routines for tone mapping on Radiance RGBE and XYZE pictures. @@ -9,16 +9,14 @@ static const char RCSid[] = "$Id: tmapcolrs.c,v 3.31 2 #include "copyright.h" -#include #include -#include #include -#include #ifdef PCOND #include "paths.h" #endif #include "tmprivat.h" +#include "rtio.h" #include "resolu.h" #define GAMTSZ 4096 @@ -151,7 +149,7 @@ headline( /* grok a header line */ void *vrh ) { - char fmt[32]; + char fmt[MAXFMTLEN]; struct radhead *rh = vrh; if (formatval(fmt, s)) {