diff -urw uc_coupon-1.x-dev/uc_coupon.module uc_coupon-1.x-dev--new/uc_coupon.module
--- uc_coupon-1.x-dev/uc_coupon.module	2010-02-17 21:45:23.000000000 -0500
+++ uc_coupon-1.x-dev--new/uc_coupon.module	2010-03-06 16:07:27.000000000 -0500
@@ -301,7 +301,7 @@
   $form['bulk']['bulk_length'] = array(
     '#type' => 'select',
     '#title' => t('Code length'),
-    '#description' => t('The number of characters selected here will be appended to the coupon code entered above..'),
+    '#description' => t('The number of characters selected here will be appended to the base code entered above when generating bulk and purchased coupons.'),
     '#default_value' => $value->data['bulk_length'],
     '#options' => drupal_map_assoc(range(8, 30)),
     '#disabled' => $used,
@@ -692,8 +692,9 @@
 
   if ($form_state['values']['bulk_generate']) {
     $data['bulk_number'] = $form_state['values']['bulk_number'];
-    $data['bulk_length'] = $form_state['values']['bulk_length'];
   }
+  // Use this as the code length for purchased coupons.
+  $data['bulk_length'] = $form_state['values']['bulk_length'];
 
   if ($form_state['values']['max_uses_per_user']) {
     $data['max_uses_per_user'] = $form_state['values']['max_uses_per_user'];
diff -urw uc_coupon-1.x-dev/uc_coupon_purchase/uc_coupon_purchase.module uc_coupon-1.x-dev--new/uc_coupon_purchase/uc_coupon_purchase.module
--- uc_coupon-1.x-dev/uc_coupon_purchase/uc_coupon_purchase.module	2009-11-20 11:44:02.000000000 -0500
+++ uc_coupon-1.x-dev--new/uc_coupon_purchase/uc_coupon_purchase.module	2010-03-05 21:46:50.000000000 -0500
@@ -171,16 +171,17 @@
   $coupon->name .= ' '. t('purchased by !name', array('!name' => $purchaser));
   $coupon->data['order_id'] = $order->order_id;
 
+  if (!isset($coupon->data['bulk_length'])) {
+    $coupon->data['bulk_length'] = 8;
+  }
+
   // Append a random string to the coupon code and generate a new bulk seed.
-  $coupon->code .= strtoupper(user_password(5));
+  $coupon->code .= strtoupper(user_password($coupon->data['bulk_length']));
   $coupon->bulk_seed = md5(uniqid());
 
   // If the quantity purchased was more than 1, convert to a bulk coupon.
   if ($qty > 1) {
     $coupon->bulk = TRUE;
-    if (!isset($coupon->data['bulk_length'])) {
-      $coupon->data['bulk_length'] = 8;
-    }
 
     if (!isset($coupon->data['bulk_number'])) {
       $coupon->data['bulk_number'] = 1;
