From 65fd0c9c7a6ce872976e0299b6fb2bbde8d523b6 Mon Sep 17 00:00:00 2001 From: ehofman Date: Wed, 17 Jun 2009 07:39:24 +0000 Subject: [PATCH] small bugfix --- utils/xmlgrep/printtree.c | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/xmlgrep/printtree.c b/utils/xmlgrep/printtree.c index e4e8c490b..6998b1397 100644 --- a/utils/xmlgrep/printtree.c +++ b/utils/xmlgrep/printtree.c @@ -59,6 +59,7 @@ void print_xml(void *id, char *name, unsigned int len) s = xmlGetString(xid); if (s) { + name[len] = 0; printf("%s = %s\n", name, s); free(s); }