From 2886b82bf07a4a563078edf9abff716424787f02 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 16 Sep 2017 11:50:35 +0200 Subject: [PATCH] Reacted on compiler warning about theoretical overflow of an sprintf --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/mmc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 48510a1..d34870e 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2017.09.13.075728" +#define Cdrskin_timestamP "2017.09.16.095011" diff --git a/libburn/mmc.c b/libburn/mmc.c index 9ed48a2..2c13432 100644 --- a/libburn/mmc.c +++ b/libburn/mmc.c @@ -3668,7 +3668,7 @@ int mmc_format_unit(struct burn_drive *d, off_t size, int flag) int accept_count = 0; off_t num_of_blocks = 0, diff, format_size, i_size, format_00_max_size; off_t min_size = -1, max_size = -1; - char *msg = NULL, descr[80]; + char *msg = NULL, descr[80 + 10 + 22]; /* profile+filltext+index */ int key, asc, ascq; int full_format_type = 0x00; /* Full Format (or 0x10 for DVD-RW ?) */