- if (!isdigit(argv[1][0]))
- bb_show_usage();
-
- /* check for Illegal vt number */
- vtno=bb_xgetlarg(argv[1], 10, 1, 12);
-
- sprintf(vtname, VTNAME, vtno);
+ /* check for Illegal vt number: < 1 or > 12 */
+ sprintf(vtname, VC_FORMAT,(int)bb_xgetlarg(argv[1], 10, 1, 12));