Verified Commit df22296a authored by Duncan Macleod's avatar Duncan Macleod
Browse files

lalapps: fix string ops in pulsar code

this is essentially a copy of !1417 in another place
parent cb3cee98
......@@ -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