1 --- console-tools-0.3.3/vttools/resizecons.c.resizecons Wed Aug 25 23:13:26 1999
2 +++ console-tools-0.3.3/vttools/resizecons.c Sun Nov 7 10:45:40 1999
7 - while ( (c = getopt_long (argc, argv, "-vhc:r:l:", long_opts, NULL)) != EOF)
8 + while ( (c = getopt_long (argc, argv, "vhc:r:l:", long_opts, NULL)) != EOF)
24 *mode = MODE_VGALINES;
35 - if (argc == optind +1) /* COLSxROWS case */
36 + if (argc == (optind + 1)) /* COLSxROWS case */
40 - fprintf(stderr,_("%s: Invalid arguments"),
41 + fprintf(stderr,_("%s: Invalid arguments\n"),
45 - if ((p = index (argv[optind],'x')) != 0)
47 - *cols = atoi (argv[optind]);
52 + if ((p = index (argv[optind],'x')) == NULL)
54 - fprintf(stderr,_("%s: Unrecognized argument"),
55 + fprintf(stderr, _("%s: Unrecognized argument\n"),
59 + *cols = atoi (argv[optind]);
65 - if (argc == optind +2) /* COLS ROWS case */
66 + if (argc == (optind + 2)) /* COLS ROWS case */
70 - fprintf(stderr,_("%s: Invalid arguments"),
71 + fprintf(stderr,_("%s: Invalid arguments\n"),
79 - if (argc == optind && *rows && *cols)
80 + if (argc == optind && ((*rows && *cols) || *mode == MODE_VGALINES))
83 fprintf (stderr, _("%s: bad number of arguments\n"),