]> granicus.if.org Git - graphviz/commitdiff
Fix warning about splitting ambiguous name to include file name
authorerg <devnull@localhost>
Mon, 6 Dec 2010 18:42:25 +0000 (18:42 +0000)
committererg <devnull@localhost>
Mon, 6 Dec 2010 18:42:25 +0000 (18:42 +0000)
lib/cgraph/scan.l

index 8d586633008b526da4c0e93dfbcbd0a7b8078129..ce809d333b031075d0a308b752dd93c4a0f81f65 100644 (file)
@@ -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;