XLALAudioWAVRecordREAL4TimeSeries assumes REAL4TimeSeries->name is NUL terminated
The name members of the timeseries objects are CHAR name[LALNameLength]
and given that they are initialized in tools/TimeSeries_source.c
as
strncpy(new->name, name, LALNameLength);
are no guaranteed to be NUL terminated.
As such they cannot be passed to fopen() in the way XLALAudioWAVRecordREAL4TimeSeries in lal/support/Audio.c
does:
fpout = fopen_if_null( fp, series->name, "wav" );
a fix would be to use snprintf instead of strncpy:
snprintf(new->name, LALNameLength, "%s", name);