summaryrefslogtreecommitdiff
path: root/contrib/tools/pngfix.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2015-06-03 16:07:01 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2015-06-03 16:07:01 -0500
commitb26b51d1549db6a7f3bd9f228c25078104a79782 (patch)
tree31f3745f1a244091192c208d1dbb4aa28365e3ce /contrib/tools/pngfix.c
parentf50b593ac0a9eef59bb1c7456105584d934f0640 (diff)
downloadlibpng-b26b51d1549db6a7f3bd9f228c25078104a79782.tar.gz
[libpng16] Quieted Coverity issues in pngfix.c, png-fix-itxt.c, pngvalid.c,
pngstest.c, and pngimage.c. Most seem harmless, but png-fix-itxt would only work with iTXt chunks with length 255 or less.
Diffstat (limited to 'contrib/tools/pngfix.c')
-rw-r--r--contrib/tools/pngfix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/tools/pngfix.c b/contrib/tools/pngfix.c
index 00942627c..96c27f618 100644
--- a/contrib/tools/pngfix.c
+++ b/contrib/tools/pngfix.c
@@ -2,7 +2,7 @@
*
* Copyright (c) 2014-2015 John Cunningham Bowler
*
- * Last changed in libpng 1.6.17 [(PENDING RELEASE)]
+ * Last changed in libpng 1.6.18 [(PENDING RELEASE)]
*
* This code is released under the libpng license.
* For conditions of distribution and use, see the disclaimer
@@ -3853,6 +3853,7 @@ usage(const char *prog)
int
main(int argc, const char **argv)
{
+ char temp_name[FILENAME_MAX+1];
const char * prog = *argv;
const char * outfile = NULL;
const char * suffix = NULL;
@@ -3955,7 +3956,6 @@ main(int argc, const char **argv)
else
{
size_t outlen = strlen(*argv);
- char temp_name[FILENAME_MAX+1];
if (outfile == NULL) /* else this takes precedence */
{