From 8a11dc6224b21612f5d517ce92c60c5e7f87489e Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 4 Sep 2021 10:00:20 +0200 Subject: [PATCH] Reacted on compiler warning of Debian i386 buildd --- xorriso/opts_p_z.c | 4 ++-- xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xorriso/opts_p_z.c b/xorriso/opts_p_z.c index 13372c22..da6aebc6 100644 --- a/xorriso/opts_p_z.c +++ b/xorriso/opts_p_z.c @@ -305,9 +305,9 @@ int Xorriso_option_print(struct XorrisO *xorriso, char *text, int flag) maxl= sizeof(xorriso->mark_text); else maxl= sizeof(xorriso->result_line); - if(l >= maxl) { + if(l > maxl - 2) { sprintf(xorriso->info_text, "Output text too long for -print%s(%d > %d)", - mode == 1 ? "_info" : mode == 2 ? "_mark" : "", l, maxl); + mode == 1 ? "_info" : mode == 2 ? "_mark" : "", l, maxl - 2); Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "WARNING", 0); return(0); } diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index a1b432a9..42efd208 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2021.08.30.145223" +#define Xorriso_timestamP "2021.09.04.075955"