gcc-12 build error in LALSimIMRNRWaveforms.c
When building with gcc-12 the following error is returned:
../../../../lalsimulation/lib/LALSimIMRNRWaveforms.c: In function 'XLALSimIMRNRWaveformGetModes.constprop':
../../../../lalsimulation/lib/LALSimIMRNRWaveforms.c:847:60: error: 'snprintf' output may be truncated before the last format character [-Werror=format-truncation=]
847 | snprintf(phase_key, sizeof(phase_key), "phase_l%d_m%d", model, modem);
| ^
../../../../lalsimulation/lib/LALSimIMRNRWaveforms.c:847:7: note: 'snprintf' output between 12 and 31 bytes into a destination of size 30
847 | snprintf(phase_key, sizeof(phase_key), "phase_l%d_m%d", model, modem);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Full build log is here.