static void
parse_conf (const char *conf_file, struct conf *config)
{
+ unsigned int cnt = 0;
char line[256 + 1];
FILE *conf;
char *assign, *comment, *opt, *value;
char *p;
+ cnt++;
if (strlen (line) > (sizeof (line) - 2))
- vfprintf_fail ("%s: line exceeds maximum of %u characters", conf_file, (unsigned int)(sizeof (line) - 2));
+ vfprintf_fail ("%s: line %u exceeds maximum of %u characters", conf_file, cnt, (unsigned int)(sizeof (line) - 2));
if ((p = strrchr (line, '\n')))
*p = '\0';
/* NAME PARSING (start) */
[ 'omit-color-empty1=yes', 'option \'omit-color-empty1\' not recognized' ],
[ 'attr', 'option \'attr\' not followed by =' ],
[ 'attr bold', 'option \'attr\' not followed by =' ],
- [ "color=$chars_exceed", 'line exceeds maximum of' ],
+ [ "color=$chars_exceed", 'line 1 exceeds maximum of' ],
);
foreach my $set (@set) {