From: Michael R Sweet Date: Tue, 6 Feb 2018 20:29:55 +0000 (-0500) Subject: Fix timezone offset code. X-Git-Tag: v2.3b4~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f17549fbb4887969d71b2d56e8da7a1a22812048;p=thirdparty%2Fcups.git Fix timezone offset code. --- diff --git a/cups/ipp-file.c b/cups/ipp-file.c index 14918125cd..286609120b 100644 --- a/cups/ipp-file.c +++ b/cups/ipp-file.c @@ -546,7 +546,7 @@ parse_value(_ipp_file_t *f, /* I - IPP data file */ utc_offset = 0; /* Timezone offset from UTC */ ipp_uchar_t date[11]; /* dateTime value */ - if (sscanf(value, "%d-%d-%dT%d:%d:%d-%d", &year, &month, &day, &hour, &minute, &second, &utc_offset) < 6) + if (sscanf(value, "%d-%d-%dT%d:%d:%d%d", &year, &month, &day, &hour, &minute, &second, &utc_offset) < 6) { report_error(f, v, user_data, "Bad dateTime value \"%s\" on line %d of \"%s\".", value, f->linenum, f->filename); return (0);