OK. solved by using static char name[EXR_PASS_MAXNAME]; in 'make_pass_name'.
To add the define in the typedef defines here is not bad, but I will leave it for later (at least it's all in the same place)