Index: modules/taxonomy/taxonomy.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/taxonomy/taxonomy.module,v
retrieving revision 1.460
diff -u -p -r1.460 taxonomy.module
--- modules/taxonomy/taxonomy.module	6 Feb 2009 16:25:09 -0000	1.460
+++ modules/taxonomy/taxonomy.module	10 Feb 2009 02:58:45 -0000
@@ -527,7 +527,7 @@ function taxonomy_form_alter(&$form, $fo
           '#default_value' => $typed_string,
           '#autocomplete_path' => 'taxonomy/autocomplete/' . $vocabulary->vid,
           '#weight' => $vocabulary->weight,
-          '#maxlength' => 255,
+          '#after_build' => array('_taxonomy_set_maxlength'),
         );
       }
       else {
@@ -1186,6 +1186,14 @@ function _taxonomy_term_select($title, $
 }
 
 /**
+ * Helper function to set the tags textfield maxlength to unlimited
+ */
+function _taxonomy_set_maxlength(&$element) {
+  unset($element['#maxlength']);
+  return($element);
+}
+
+/**
  * Format the selection field for choosing terms
  * (by default the default selection field is used).
  *
