summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tasktree.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tasktree.cc b/src/tasktree.cc
index c66e665..d652eae 100644
--- a/src/tasktree.cc
+++ b/src/tasktree.cc
@@ -248,10 +248,10 @@ void TaskTree::insertChild(node_t* parent, node_t* child) {
static void printNode(node_t* node, std::string prefix) {
if(!node) return;
task_t t = node->data;
- printf("%s/%u - %s\n", prefix.c_str(), node->id, t.title.c_str());
+ printf("%s/%u - %s\n", prefix.c_str(), t.id, t.title.c_str());
char buf[4096];
- sprintf(buf, "%s/%u - %s", prefix.c_str(), node->id, t.title.c_str());
+ sprintf(buf, "%s/%u - %s", prefix.c_str(), t.id, t.title.c_str());
NodeList::iterator it;
for(it = node->children.begin(); it != node->children.end(); it++) {