summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-05-28 19:03:26 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-05-28 19:03:26 +0000
commit0238301acae1b83e7ec5a8b2c288469467fe51da (patch)
treed0baf93b610475ad6157fb4133311494a3b26138 /src
parent3864a4538872269d9bdbeda5cb88bee80f2a07cc (diff)
Replaced sprintf() by hts_template_format_str()
Diffstat (limited to 'src')
-rw-r--r--src/htsparse.c5
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);