summaryrefslogtreecommitdiff
path: root/lib/command_graph.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-08-01 18:36:30 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-08-01 18:36:30 +0000
commite648e61a747c6c13ccea7d97066dfb07d4461d96 (patch)
tree69b027a83a6c1bbd41e1a5844a524a2b14c4bb22 /lib/command_graph.c
parent1a8c390d4abc7c3f599813ddee6ca3990de7576c (diff)
lib: Fix OOB range parses, variable matches
Variables now allow strings beginning with numbers to match, ranges and numbers are now long long to fix OOB parses resulting in integer wraparounds. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command_graph.c')
-rw-r--r--lib/command_graph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command_graph.c b/lib/command_graph.c
index e8f72db19e..07cc306505 100644
--- a/lib/command_graph.c
+++ b/lib/command_graph.c
@@ -193,7 +193,7 @@ dump_node (struct graph_node *node)
fprintf(stderr, "\t->value: %ld\n", node->value);
fprintf(stderr, "\t->is_start: %d\n", node->is_start);
fprintf(stderr, "\t->element: %p\n", node->element);
- fprintf(stderr, "\t->min: %ld\n->max: %ld\n", node->min, node->max);
+ fprintf(stderr, "\t->min: %lld\n->max: %lld\n", node->min, node->max);
fprintf(stderr, "\t->arg: %s\n", node->arg);
fprintf(stderr, "\t->refs: %d\n", node->refs);
fprintf(stderr, "\tnum children: %d\n", vector_active(node->children));