Commit cb3cee98 authored by Karl Wette's avatar Karl Wette
Browse files

Merge branch 'FstatToplist-string-ops' into 'master'

FstatToplist: simplify string ops in write_hs_checkpoint()

Closes #364

See merge request lscsoft/lalsuite!1417
parents a5957204 03ab0a9e
......@@ -741,8 +741,8 @@ int write_hs_checkpoint(const char*filename, toplist_t*tl, UINT4 counter, BOOLEA
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);
/* calculate checksum */
checksum = 0;
......
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