]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix compiler warning.
authorMichael R Sweet <msweet@msweet.org>
Mon, 1 Mar 2021 11:36:22 +0000 (06:36 -0500)
committerMichael R Sweet <msweet@msweet.org>
Mon, 1 Mar 2021 11:36:22 +0000 (06:36 -0500)
locale/checkpo.c

index 2e926d3d44c568d0d0163cb4977973f9b0289fc6..1a14ec0885c83f61b457c9e7e6fadd8c59320dcb 100644 (file)
@@ -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;
     }