Skip to content
Browse files

Fixes gcc-8 compiler warnings in esl_dsqdata utest snprintf()'s.

Compiler couldn't tell that tmpfile[32] could be safely written to
basename[32] with a suffix, because tmpfile only contains a short
tmpfile name. Changed tmpfile[32] to [16].
  • Loading branch information...
cryptogenomicon committed Jun 1, 2018
1 parent 8fd2dd8 commit 74dc98c5cad3585981bcf35e6ef616388118e077
Showing with 1 addition and 1 deletion.
  1. +1 −1 esl_dsqdata.c
@@ -1453,7 +1453,7 @@ static void
utest_readwrite(ESL_RANDOMNESS *rng, ESL_ALPHABET *abc)
char msg[] = "esl_dsqdata :: readwrite unit test failed";
char tmpfile[32] = "esltmpXXXXXX";
char tmpfile[16] = "esltmpXXXXXX";
char basename[32];
ESL_SQ **sqarr = NULL;
FILE *tmpfp = NULL;

0 comments on commit 74dc98c

Please sign in to comment.
You can’t perform that action at this time.