summaryrefslogtreecommitdiff
path: root/src/htsjava.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/htsjava.c
parent78df0864a76d1543e8c97df75f125424a8e97250 (diff)
Fixed sprintf
Diffstat (limited to 'src/htsjava.c')
-rw-r--r--src/htsjava.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/htsjava.c b/src/htsjava.c
index c1b1b0f..48a4267 100644
--- a/src/htsjava.c
+++ b/src/htsjava.c
@@ -268,7 +268,7 @@ static int hts_parse_java(t_hts_callbackarg * carg, httrackp * opt,
tempo[0] = '\0';
- sprintf(tempo, "%s.class", tab[tab[i].index1].name);
+ snprintf(tempo, sizeof(tempo), "%s.class", tab[tab[i].index1].name);
#if JAVADEBUG
printf("add %s\n", tempo);
#endif