From: Matthew Fernandez Date: Sat, 6 Mar 2021 22:25:33 +0000 (-0800) Subject: remove an unnecessary intermediate buffer X-Git-Tag: 2.47.1~53^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d8fb426397fb9860c8673a80a2d49b49cce4228;p=graphviz remove an unnecessary intermediate buffer --- diff --git a/cmd/tools/gmlscan.l b/cmd/tools/gmlscan.l index 7c577a360..41fb16aa4 100644 --- a/cmd/tools/gmlscan.l +++ b/cmd/tools/gmlscan.l @@ -129,12 +129,10 @@ L_ID [a-zA-Z_][_a-zA-Z0-9]* void gmlerror(char *str) { - char buf[BUFSIZ]; if (errors) return; errors = 1; - sprintf(buf," %s in line %d near '%s'\n", str,line_num,yytext); - agerr(AGWARN, "%s", buf); + agerr(AGWARN, " %s in line %d near '%s'\n", str,line_num,yytext); } int gmlerrors()