diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/htsparse.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/htsparse.c b/src/htsparse.c index 53872b5..1e431b4 100644 --- a/src/htsparse.c +++ b/src/htsparse.c @@ -748,9 +748,10 @@ int htsparse(htsmoduleStruct * str, htsmoduleStructExtended * stre) { tempo[0] = '\0'; time_gmt_rfc822(gmttime); strcatbuff(tempo, eol); - sprintf(tempo + strlen(tempo), StringBuff(opt->footer), + hts_template_format_str(tempo + strlen(tempo), sizeof(tempo) - strlen(tempo), + StringBuff(opt->footer), jump_identification(urladr()), urlfil(), gmttime, - HTTRACK_VERSIONID, "", "", "", "", "", "", ""); + HTTRACK_VERSIONID, /* EOF */ NULL); strcatbuff(tempo, eol); //fwrite(tempo,1,strlen(tempo),fp); HT_ADD(tempo); |