]> git.mxchange.org Git - flightgear.git/commitdiff
small bugfix
authorehofman <ehofman>
Wed, 17 Jun 2009 07:39:24 +0000 (07:39 +0000)
committerTim Moore <timoore@redhat.com>
Tue, 23 Jun 2009 08:54:08 +0000 (10:54 +0200)
utils/xmlgrep/printtree.c

index e4e8c490bda5244f1d986dd774465359e43d76cd..6998b1397703fd155cf752150b344ea745035194 100644 (file)
@@ -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);
     }