From 2ccdac37772473437ef7fd8bef849f3533691494 Mon Sep 17 00:00:00 2001 From: Rene Brun <Rene.Brun@cern.ch> Date: Tue, 12 Oct 2010 08:08:06 +0000 Subject: [PATCH] use strlcat git-svn-id: http://root.cern.ch/svn/root/trunk@36309 27541ba8-7e3a-0410-8455-c3a389f83636 --- graf2d/graf/src/TGaxis.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graf2d/graf/src/TGaxis.cxx b/graf2d/graf/src/TGaxis.cxx index 3d6a3de2b06..1ec67524a19 100644 --- a/graf2d/graf/src/TGaxis.cxx +++ b/graf2d/graf/src/TGaxis.cxx @@ -1491,13 +1491,13 @@ L110: if (label[first] == '.') { //check if '.' is preceeded by a digit strncpy(chtemp, "0",256); - strcat(chtemp, &label[first]); + strlcat(chtemp, &label[first],256); strncpy(label, chtemp,256); first = 1; last = strlen(label); } if (label[first] == '-' && label[first+1] == '.') { strncpy(chtemp, "-0",256); - strcat(chtemp, &label[first+1]); + strlcat(chtemp, &label[first+1],256); strncpy(label, chtemp, 256); first = 1; last = strlen(label); } -- GitLab