From d6b26ca8f79beddc1f3f66a90b799fcb62b120dc Mon Sep 17 00:00:00 2001 From: Rene Brun <Rene.Brun@cern.ch> Date: Wed, 11 Feb 2004 13:14:20 +0000 Subject: [PATCH] Add a comment in TPythia::Pyname indicating that the array name must be dimensioned to name[16] in the calling program. git-svn-id: http://root.cern.ch/svn/root/trunk@8182 27541ba8-7e3a-0410-8455-c3a389f83636 --- pythia6/src/TPythia6.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pythia6/src/TPythia6.cxx b/pythia6/src/TPythia6.cxx index 44f727060d2..4f1f7c4faaf 100644 --- a/pythia6/src/TPythia6.cxx +++ b/pythia6/src/TPythia6.cxx @@ -1,4 +1,4 @@ -// @(#)root/pythia6:$Name: $:$Id: TPythia6.cxx,v 1.8 2002/11/26 17:57:43 brun Exp $ +// @(#)root/pythia6:$Name: $:$Id: TPythia6.cxx,v 1.9 2002/12/04 09:13:55 brun Exp $ // Author: Rene Brun 19/10/99 // //////////////////////////////////////////////////////////////////////////////// @@ -503,7 +503,10 @@ void TPythia6::Pylist(int flag) { } void TPythia6::Pyname(int kf, char* name) { - pyname(&kf,name,15); + //Note that the array name must be dimesioned in the calling program + //to at least name[16] + + pyname(&kf,name,15); // cut trailing blanks to get C string for (int i=15; (i>=0) && (name[i] != ' '); i--) { -- GitLab