From: Michael R Sweet Date: Mon, 1 Mar 2021 11:36:22 +0000 (-0500) Subject: Fix compiler warning. X-Git-Tag: v2.4b1~253 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c8224abf48e6b1cca31c3b67c09dae1c16b80c9;p=thirdparty%2Fcups.git Fix compiler warning. --- diff --git a/locale/checkpo.c b/locale/checkpo.c index 2e926d3d44..1a14ec0885 100644 --- a/locale/checkpo.c +++ b/locale/checkpo.c @@ -2,8 +2,9 @@ * Verify that translations in the .po file have the same number and type of * printf-style format strings. * - * Copyright 2007-2017 by Apple Inc. - * Copyright 1997-2007 by Easy Software Products, all rights reserved. + * Copyright © 2021 by OpenPrinting. + * Copyright © 2007-2017 by Apple Inc. + * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. * @@ -321,7 +322,7 @@ abbreviate(const char *s, /* I - String to abbreviate */ if (bufsize < 4) break; - snprintf(bufptr, bufsize, "\\%03o", *s); + snprintf(bufptr, (size_t)bufsize, "\\%03o", *s); bufptr += 4; bufsize -= 4; }