summaryrefslogtreecommitdiff
path: root/systemv
diff options
context:
space:
mode:
authorRory McNamara <git@rorym.cnamara.com>2017-05-10 13:31:00 +0100
committerRory McNamara <git@rorym.cnamara.com>2017-05-10 13:31:00 +0100
commit95633d62829e1babc3ef7b8ac710994aa69901b1 (patch)
treee6b8475b60cc55c5c6e519939c8afe14c924e419 /systemv
parent2a20b5124546cafc5fe686b1af0223642d43a94a (diff)
downloadcups-95633d62829e1babc3ef7b8ac710994aa69901b1.tar.gz
cupstestppd.c: limit PSVersion sscanf size and stop at a newline
Diffstat (limited to 'systemv')
-rw-r--r--systemv/cupstestppd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/systemv/cupstestppd.c b/systemv/cupstestppd.c
index dbce71865..9344c51ee 100644
--- a/systemv/cupstestppd.c
+++ b/systemv/cupstestppd.c
@@ -923,7 +923,7 @@ main(int argc, /* I - Number of command-line args */
int junkint; /* Temp integer */
- if (sscanf(attr->value, "(%[^)])%d", junkstr, &junkint) != 2)
+ if (sscanf(attr->value, "(%254[^)\n])%d", junkstr, &junkint) != 2)
{
if (verbose >= 0)
{