Commit f199e453 authored by Kipp Cannon's avatar Kipp Cannon

StringSearch.c: fix memory problem

- identified by gcc 8.  this patch gets the lalapps/src/string/ directory compilable with -Werror and gcc 8.
parent f1223ccd
......@@ -579,7 +579,7 @@ int FindEvents(struct CommandLineArgsTag CLA, const StringTemplate *strtemplate,
strncpy( new->ifo, CLA.ChannelName, 2 );
new->ifo[2] = 0;
strncpy( new->search, "StringCusp", sizeof( new->search ) );
strncpy( new->channel, CLA.ChannelName, sizeof( new->channel ) );
strncpy( new->channel, CLA.ChannelName, sizeof( new->channel ) - 1);
/* compute start and peak time and duration, give 1 sample of fuzz on
* both sides */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment