From 0238301acae1b83e7ec5a8b2c288469467fe51da Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Wed, 28 May 2014 19:03:26 +0000 Subject: Replaced sprintf() by hts_template_format_str() --- src/htsparse.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3