[master] 2b400f6 - Solves png warnings from gcc 11.2.0/Rev2 for issue #296

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 2b400f6 - Solves png warnings from gcc 11.2.0/Rev2 for issue #296 "Greg Ercolano" 10:02 Nov 25 top right image
 
commit 2b400f6abcbd26377b298deb5ee6f7d0166cdfd6
Author:     Greg Ercolano <erco@seriss.com>
AuthorDate: Thu Nov 25 09:50:45 2021 -0800
Commit:     Greg Ercolano <erco@seriss.com>
CommitDate: Thu Nov 25 09:50:45 2021 -0800

    Solves png warnings from gcc 11.2.0/Rev2 for issue #296

 png/png.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git png/png.c png/png.c
index 757c755..6805db9 100644
--- png/png.c
+++ png/png.c
@@ -752,7 +752,7 @@ png_convert_to_rfc1123_buffer(char out[29], png_const_timep ptime)
 
    {
       size_t pos = 0;
-      char number_buf[5]; /* enough for a four-digit year */
+      char number_buf[5] = ""; /* enough for a four-digit year */ /* FLTK Issue #296 */
 
 #     define APPEND_STRING(string) pos = png_safecat(out, 29, pos, (string))
 #     define APPEND_NUMBER(format, value)\
Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2022 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.