Skip to content

Commit

Permalink
Merge fbac4cd into 275b74a
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Jul 15, 2019
2 parents 275b74a + fbac4cd commit c5949c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tool_cb_prg.c
Expand Up @@ -210,7 +210,8 @@ void progressbarinit(struct ProgressData *bar,
if(colp) {
char *endptr;
long num = strtol(colp, &endptr, 10);
if((endptr != colp) && (endptr == colp + strlen(colp)) && (num > 20))
if((endptr != colp) && (endptr == colp + strlen(colp)) && (num > 20) &&
(num < 10000))
bar->width = (int)num;
curl_free(colp);
}
Expand Down

0 comments on commit c5949c7

Please sign in to comment.