Skip to content

Commit 169d216

Browse files
committed
Expand allocation of options string.
1 parent 399ad15 commit 169d216

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

scheduler/job.c

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4211,18 +4211,6 @@ ipp_length(ipp_t *ipp) /* I - IPP request */
42114211

42124212
for (attr = ipp->attrs; attr != NULL; attr = attr->next)
42134213
{
4214-
/*
4215-
* Skip attributes that won't be sent to filters...
4216-
*/
4217-
4218-
if (attr->value_tag == IPP_TAG_NOVALUE ||
4219-
attr->value_tag == IPP_TAG_MIMETYPE ||
4220-
attr->value_tag == IPP_TAG_NAMELANG ||
4221-
attr->value_tag == IPP_TAG_TEXTLANG ||
4222-
attr->value_tag == IPP_TAG_URI ||
4223-
attr->value_tag == IPP_TAG_URISCHEME)
4224-
continue;
4225-
42264214
/*
42274215
* Add space for a leading space and commas between each value.
42284216
* For the first attribute, the leading space isn't used, so the
@@ -4298,10 +4286,14 @@ ipp_length(ipp_t *ipp) /* I - IPP request */
42984286

42994287
case IPP_TAG_TEXT :
43004288
case IPP_TAG_NAME :
4289+
case IPP_TAG_TEXTLANG :
4290+
case IPP_TAG_NAMELANG :
4291+
case IPP_TAG_MIMETYPE :
43014292
case IPP_TAG_KEYWORD :
43024293
case IPP_TAG_CHARSET :
43034294
case IPP_TAG_LANGUAGE :
43044295
case IPP_TAG_URI :
4296+
case IPP_TAG_URISCHEME :
43054297
/*
43064298
* Strings can contain characters that need quoting. We need
43074299
* at least 2 * len + 2 characters to cover the quotes and

0 commit comments

Comments
 (0)