Commit 9314819d authored by David Keitel's avatar David Keitel
Browse files

Merge branch 'another-lalapps-strncpy-fix' into 'master'

Another lalapps/pulsar string ops fix

See merge request lscsoft/lalsuite!1419
parents cb3cee98 df22296a
......@@ -679,8 +679,8 @@ int write_gct_checkpoint(const char*filename, toplist_t*tl, toplist_t*t2, toplis
LogPrintf(LOG_CRITICAL,"Couldn't allocate tmpfilename\n");
return(-2);
}
strncpy(tmpfilename,filename,len);
strncat(tmpfilename,TMP_EXT,len);
strcpy(tmpfilename,filename);
strcat(tmpfilename,TMP_EXT);
/* open tempfile */
fp=fopen(tmpfilename,"wb");
......
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