]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Expand allocation of options string.
authorMichael R Sweet <msweet@msweet.org>
Tue, 31 Mar 2026 18:49:09 +0000 (14:49 -0400)
committerMichael R Sweet <msweet@msweet.org>
Tue, 31 Mar 2026 18:49:09 +0000 (14:49 -0400)
scheduler/job.c

index d81690e3297415c4048a11a6615c3257fd36313e..9f7a44ea118ecc3b48e9f6cc87511a759e6c02a6 100644 (file)
@@ -4211,18 +4211,6 @@ ipp_length(ipp_t *ipp)                   /* I - IPP request */
 
   for (attr = ipp->attrs; attr != NULL; attr = attr->next)
   {
-   /*
-    * Skip attributes that won't be sent to filters...
-    */
-
-    if (attr->value_tag == IPP_TAG_NOVALUE ||
-       attr->value_tag == IPP_TAG_MIMETYPE ||
-       attr->value_tag == IPP_TAG_NAMELANG ||
-       attr->value_tag == IPP_TAG_TEXTLANG ||
-       attr->value_tag == IPP_TAG_URI ||
-       attr->value_tag == IPP_TAG_URISCHEME)
-      continue;
-
    /*
     * Add space for a leading space and commas between each value.
     * For the first attribute, the leading space isn't used, so the
@@ -4298,10 +4286,14 @@ ipp_length(ipp_t *ipp)                  /* I - IPP request */
 
       case IPP_TAG_TEXT :
       case IPP_TAG_NAME :
+      case IPP_TAG_TEXTLANG :
+      case IPP_TAG_NAMELANG :
+      case IPP_TAG_MIMETYPE :
       case IPP_TAG_KEYWORD :
       case IPP_TAG_CHARSET :
       case IPP_TAG_LANGUAGE :
       case IPP_TAG_URI :
+      case IPP_TAG_URISCHEME :
          /*
          * Strings can contain characters that need quoting.  We need
          * at least 2 * len + 2 characters to cover the quotes and