diff options
Diffstat (limited to 'src/screen.c')
-rw-r--r-- | src/screen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/screen.c b/src/screen.c index c518c6f..5313119 100644 --- a/src/screen.c +++ b/src/screen.c @@ -595,10 +595,10 @@ main(int argc, char **argv) case 'T': if (--argc == 0) exit_with_usage(myname, "Specify terminal-type with -T", NULL); - if (strlen(*++argv) < 20) - strncpy(screenterm, *argv, 20); + if (strlen(*++argv) < MAXTERMLEN) + strncpy(screenterm, *argv, MAXTERMLEN); else - Panic(0, "-T: terminal name too long. (max. 20 char)"); + Panic(0, "-T: terminal name too long. (max. %d char)", MAXTERMLEN); nwin_options.term = screenterm; break; case 'q': |