Skip to content

Commit

Permalink
Fix bug in new cupsParseOptions2 implementation.
Browse files Browse the repository at this point in the history
Fix bug in run-stp-tests.sh script.
  • Loading branch information
michaelrsweet committed Oct 19, 2024
1 parent 11aec4e commit 3fdbb59
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 8 additions & 2 deletions cups/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ cupsParseOptions2(
}

if (*copyarg == '{')
ptr = copyarg + 1;
ptr = copyarg + 1;
else
ptr = copyarg;

Expand All @@ -334,7 +334,7 @@ cupsParseOptions2(
// End after the closing brace...
if (*ptr == '}' && *copyarg == '{')
{
ptr ++;
*ptr++ = '\0';
break;
}

Expand Down Expand Up @@ -413,6 +413,12 @@ cupsParseOptions2(
// Normal space-delimited string...
while (*ptr && !_cups_isspace(*ptr))
{
if (*ptr == '}' && *copyarg == '{')
{
*ptr++ = '\0';
break;
}

if (*ptr == '\\' && ptr[1])
_cups_strcpy(ptr, ptr + 1);

Expand Down
8 changes: 1 addition & 7 deletions test/run-stp-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Perform the complete set of IPP compliance tests specified in the
# CUPS Software Test Plan.
#
# Copyright © 2020-2023 by OpenPrinting
# Copyright © 2020-2024 by OpenPrinting
# Copyright © 2007-2021 by Apple Inc.
# Copyright © 1997-2007 by Easy Software Products, all rights reserved.
#
Expand All @@ -28,12 +28,6 @@ fi

umask 022

#
# Make the IPP test program...
#

make

#
# Solaris has a non-POSIX grep in /bin...
#
Expand Down

0 comments on commit 3fdbb59

Please sign in to comment.