ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit 320ace5172cba7e2a377644735b7122a5cbe494d
parent 0966e1b17d00de145b76b7192e7c74e8d1448c1b
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu, 18 Oct 2018 10:07:51 +0200

Restrict maximum allowed number of columns to 4096

Diffstat:
Msrc/main.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -151,10 +151,10 @@ int main(int argc, char *argv[]) { break; case 'c': // convert numeric command line flags to integer values - options.columns = strtonum(optarg, 1, 8192, &errstr); + options.columns = strtonum(optarg, 1, 4096, &errstr); if (errstr) { - fprintf(stderr, "\nInvalid value for columns (must range from 1 to 8192).\n\n"); + fprintf(stderr, "\nInvalid value for columns (must range from 1 to 4096).\n\n"); return EXIT_FAILURE; }