From 63294ede8bad25a640913a961fe1636923acef85 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 8 May 2022 16:59:16 -0700 Subject: [PATCH] graphml2gv: abbreviate an open coded 'strcat' --- cmd/tools/graphml2gv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tools/graphml2gv.c b/cmd/tools/graphml2gv.c index 4b948e2e4..5aafb020d 100644 --- a/cmd/tools/graphml2gv.c +++ b/cmd/tools/graphml2gv.c @@ -16,6 +16,7 @@ #include #include #include +#include #ifdef HAVE_EXPAT #include #include @@ -553,8 +554,7 @@ static void endElementHandler(void *userData, const char *name) name = dynbuf = N_NEW(len, char); strcpy(name, GRAPHML_COMP); } - strcpy(name + sizeof(GRAPHML_COMP) - 1, - agxbuse(&ud->xml_attr_name)); + strcat(name, agxbuse(&ud->xml_attr_name)); value = agxbuse(&ud->composite_buffer); agxbclear(&ud->xml_attr_value); ud->compositeReadState = FALSE; -- 2.40.0