X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fnewick.c;h=e94ded5e612ed08acf9d29d9ac9dada4c9537727;hb=6ee9e0a4e1e6bbc09187382bfdef57fafe3844c7;hp=d0a4f15e88abc94d3d2787322661ce5a72537f0a;hpb=d88302b4735b5b7c9132387090bb592d906fe1cb;p=ape.git diff --git a/src/newick.c b/src/newick.c index d0a4f15..e94ded5 100644 --- a/src/newick.c +++ b/src/newick.c @@ -1,4 +1,4 @@ -/* newick.c 2008-01-14 */ +/* newick.c 2010-11-23 */ /* Copyright 2007-2008 Vincent Lefort */ @@ -230,7 +230,7 @@ tree *readNewickString (char *str, int numLeaves) } } centerNode = decodeNewickSubtree (str, T, &uCount); - snprintf (centerNode->label, MAX_LABEL_LENGTH, rootLabel); + snprintf (centerNode->label, MAX_LABEL_LENGTH, "%s", rootLabel); /* added "%s" following Jos Kafer's suggestion (2010-11-23) */ T->root = centerNode; return(T); }