From 2c8224abf48e6b1cca31c3b67c09dae1c16b80c9 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 1 Mar 2021 06:36:22 -0500 Subject: [PATCH] Fix compiler warning. --- locale/checkpo.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; } -- 2.47.2