diff options
author | Maximilian Szengel <gnunet@maxsz.de> | 2012-07-11 15:36:33 +0000 |
---|---|---|
committer | Maximilian Szengel <gnunet@maxsz.de> | 2012-07-11 15:36:33 +0000 |
commit | 437a71dbf71cca304203529fc7bf96308d391e93 (patch) | |
tree | 0902dafc47696ecccb116bb82c941fa2fb1a896d /src/regex | |
parent | dce730d13ee6a81c49974d6e72d47f16cee24d3a (diff) | |
download | gnunet-437a71dbf71cca304203529fc7bf96308d391e93.tar.gz gnunet-437a71dbf71cca304203529fc7bf96308d391e93.zip |
bugfix
Diffstat (limited to 'src/regex')
-rw-r--r-- | src/regex/regex.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regex/regex.c b/src/regex/regex.c index ceaeedf6d..a17d5a57f 100644 --- a/src/regex/regex.c +++ b/src/regex/regex.c | |||
@@ -2542,7 +2542,7 @@ iterate_initial_edge (const unsigned int min_len, const unsigned int max_len, | |||
2542 | GNUNET_REGEX_KeyIterator iterator, void *iterator_cls) | 2542 | GNUNET_REGEX_KeyIterator iterator, void *iterator_cls) |
2543 | { | 2543 | { |
2544 | unsigned int i; | 2544 | unsigned int i; |
2545 | char label[2]; | 2545 | char label[state->transition_count][2]; |
2546 | char *temp; | 2546 | char *temp; |
2547 | struct GNUNET_REGEX_Transition *t; | 2547 | struct GNUNET_REGEX_Transition *t; |
2548 | unsigned int num_edges = state->transition_count; | 2548 | unsigned int num_edges = state->transition_count; |
@@ -2553,9 +2553,9 @@ iterate_initial_edge (const unsigned int min_len, const unsigned int max_len, | |||
2553 | { | 2553 | { |
2554 | for (i = 0, t = state->transitions_head; NULL != t; t = t->next, i++) | 2554 | for (i = 0, t = state->transitions_head; NULL != t; t = t->next, i++) |
2555 | { | 2555 | { |
2556 | label[0] = t->label; | 2556 | label[i][0] = t->label; |
2557 | label[1] = '\0'; | 2557 | label[i][1] = '\0'; |
2558 | edges[i].label = label; | 2558 | edges[i].label = label[i]; |
2559 | edges[i].destination = t->to_state->hash; | 2559 | edges[i].destination = t->to_state->hash; |
2560 | } | 2560 | } |
2561 | 2561 | ||