summaryrefslogtreecommitdiff
path: root/src/htscore.c
diff options
context:
space:
mode:
authorXavier Roche <roche@httrack.com>2023-01-14 13:06:22 +0100
committerXavier Roche <roche@httrack.com>2023-01-14 15:12:07 +0100
commit340c0d940fbaccf0b69946fff9418bbb1303798f (patch)
tree52244d375891fb489b54dfab3bc8f4de3c4e9406 /src/htscore.c
parent78df0864a76d1543e8c97df75f125424a8e97250 (diff)
Fixed sprintf
Diffstat (limited to 'src/htscore.c')
-rw-r--r--src/htscore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/htscore.c b/src/htscore.c
index 517fbea..14f1756 100644
--- a/src/htscore.c
+++ b/src/htscore.c
@@ -413,7 +413,7 @@ if (makeindex_fp) { \
if (makeindex_links == 1) { \
char BIGSTK link_escaped[HTS_URLMAXSIZE*2]; \
escape_uri_utf(makeindex_firstlink, link_escaped, sizeof(link_escaped)); \
- sprintf(tempo,"<meta HTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL=%s\">"CRLF, link_escaped); \
+ snprintf(tempo,sizeof(tempo),"<meta HTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL=%s\">"CRLF, link_escaped); \
} else \
tempo[0]='\0'; \
hts_template_format(makeindex_fp,template_footer, \