This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch master in repository gfs2-utils.
commit 231a5d43493b6e7e7a8e968714aed1599ffc8b46 Author: Andrew Price anprice@redhat.com Date: Thu Aug 3 16:17:10 2017 +0100
fsck.gfs2: Fix snprintf truncation warning
Increase the journal name buffer by two bytes so that the compiler knows that there's enough space for any journal number.
fs_recovery.c:807:14: warning: ā%uā directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Wformat-truncation=]
Signed-off-by: Andrew Price anprice@redhat.com --- gfs2/fsck/fs_recovery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gfs2/fsck/fs_recovery.c b/gfs2/fsck/fs_recovery.c index e50a248..775c27b 100644 --- a/gfs2/fsck/fs_recovery.c +++ b/gfs2/fsck/fs_recovery.c @@ -16,7 +16,7 @@ #include "metawalk.h" #include "util.h"
-#define JOURNAL_NAME_SIZE 16 +#define JOURNAL_NAME_SIZE 18 #define JOURNAL_SEQ_TOLERANCE 10
unsigned int sd_found_jblocks = 0, sd_replayed_jblocks = 0;
cluster-commits@lists.stg.fedorahosted.org