/*
* Copyright © 2006 Carl Worth
*
- * This program is free software; you can redistribute it and\/or modify
+ * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
action (closure, string->s, &trie->flags);
}
- if (length == max_length)
+ if (max_length > 0 && length == max_length)
return count;
/* Loop over each element, appending the character and recursing. */