fixed bad memcpy in tree.c [1222530]
fixed strcopy problem with zeros [1202986]