From: erg Date: Mon, 6 Dec 2010 18:42:25 +0000 (+0000) Subject: Fix warning about splitting ambiguous name to include file name X-Git-Tag: LAST_LIBGRAPH~32^2~1131 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9b0c94a2c371d865247a2275a70f2377ee2ee03;p=graphviz Fix warning about splitting ambiguous name to include file name --- diff --git a/lib/cgraph/scan.l b/lib/cgraph/scan.l index 8d5866330..ce809d333 100644 --- a/lib/cgraph/scan.l +++ b/lib/cgraph/scan.l @@ -133,7 +133,7 @@ static int chkNum(void) { unsigned char c = (unsigned char)yytext[yyleng-1]; /* last character */ if (!isdigit(c) && (c != '.')) { /* c is letter */ char buf[BUFSIZ]; - sprintf(buf,"syntax error - badly formed number '%s' in line %d\n",yytext,line_num); + sprintf(buf,"syntax error - badly formed number '%s' in line %d of %s\n",yytext,line_num, InputFile); strcat (buf, "splits into two name tokens\n"); agerr(AGWARN,buf); return 1;