--- /modules/contrib/pathauto/pathauto_node.inc	2006-05-08 13:02:52.000000000 -0400
+++ /modules/contrib/pathauto/pathauto_node.inc	2006-06-30 15:25:51.000000000 -0400
@@ -63,7 +63,8 @@
       $nodetypes = node_get_types();
       foreach ($nodetypes as $ntype => $displaytype) {
         $fieldlabel = t('Pattern for all '.$displaytype.' paths');
-        $settings['patternitems'][$ntype] = $fieldlabel;
+	$type = truncated_type($ntype);
+        $settings['patternitems'][$type] = $fieldlabel;
       }
       return (object) $settings;
     default:
@@ -81,7 +82,8 @@
       case 'update':
         $placeholders = node_get_placeholders($node);        
         $src = "node/$node->nid";
-        $alias = pathauto_create_alias('node', $op, $placeholders, $src, $node->type);
+	$type = truncated_type($node->type);
+        $alias = pathauto_create_alias('node', $op, $placeholders, $src, $type);
         break;
       default:
         break;
@@ -215,8 +217,9 @@
     }
     $placeholders = node_get_placeholders($node);
     $src = "node/$node->nid";
+    $type = truncated_type($node->type);
     if ($alias = pathauto_create_alias('node', 'bulkupdate', $placeholders, 
-                  $src, $node->type)) {
+                  $src, $type)) {
       $count++;
     }
     $node = db_fetch_object($result);
@@ -276,4 +279,14 @@
 
   drupal_set_title(t($pagetitle));
   return $output;
-}
\ No newline at end of file
+}
+
+/**
+ * Truncate the node type to 26 characters so that it doesn't 
+ * go over 48 characters after "pathauto_node_" and "_pattern" 
+ * are added to it.
+ */
+function truncated_type($type) {
+  $type = drupal_substr($type, 0, 26);
+  return $type;
+}
