X-Git-Url: http://git.refcnt.org/?p=colorize.git;a=blobdiff_plain;f=colorize.c;h=bf7e3d6f1038bb1b42fc46bc2b91bf79c2f21e8e;hp=dbeed2587ca0220bf0b7f632e2b5884ee09c3731;hb=31de42f6348099f80017e1b35abb407db01e6559;hpb=946a888c6c7aea8af693089bed73673c193899a7 diff --git a/colorize.c b/colorize.c index dbeed25..bf7e3d6 100644 --- a/colorize.c +++ b/colorize.c @@ -663,6 +663,7 @@ init_opts_vars (void) static void parse_conf (const char *conf_file, struct conf *config) { + unsigned int cnt = 0; char line[256 + 1]; FILE *conf; @@ -674,8 +675,9 @@ parse_conf (const char *conf_file, struct conf *config) 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) */