diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-02 15:13:29 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-02 15:13:29 +0000 |
commit | 5544f503bf0fcfd050b4e338e8ec7b22e2f53b9a (patch) | |
tree | 2d65f1fd285c450cbb1c676697ad13b5a47a835c /src/htsjava.c | |
parent | b3fa8537c411e6e2d53044b1d5d20c361d2ad17d (diff) |
Big cleanup in functions writing to a char buffer without proper size boundary.
Diffstat (limited to 'src/htsjava.c')
-rw-r--r-- | src/htsjava.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/htsjava.c b/src/htsjava.c index 20faeee..0098994 100644 --- a/src/htsjava.c +++ b/src/htsjava.c @@ -172,7 +172,7 @@ static int hts_parse_java(t_hts_callbackarg * carg, httrackp * opt, #if JAVADEBUG printf("fopen\n"); #endif - if ((fpout = FOPEN(fconv(catbuff, file), "r+b")) == NULL) { + if ((fpout = FOPEN(fconv(catbuff, sizeof(catbuff), file), "r+b")) == NULL) { //fprintf(stderr, "Cannot open input file.\n"); sprintf(str->err_msg, "Unable to open file %s", file); return 0; // une erreur.. @@ -477,7 +477,7 @@ static int tris(httrackp * opt, char *buffer) { if (strnotempty(type)) // type reconnu! return 1; // ajout RX 05/2001 - else if (is_dyntype(get_ext(catbuff, buffer))) // asp,cgi... + else if (is_dyntype(get_ext(catbuff, sizeof(catbuff), buffer))) // asp,cgi... return 1; } return 0; |