Browse Source

Silenced gcc warnings about printf target buffer

release-1.5.2.pl01
Thomas Schmitt 3 years ago
parent
commit
7282eaab2c
  1. 2
      cdrskin/cdrskin_timestamp.h
  2. 5
      libburn/write.c

2
cdrskin/cdrskin_timestamp.h

@ -1 +1 @@
#define Cdrskin_timestamP "2018.10.10.160301"
#define Cdrskin_timestamP "2018.10.11.074048"

5
libburn/write.c

@ -440,7 +440,7 @@ static int add_isrc_cue(struct cue_sheet *sheet, unsigned char ctladr, int tno,
{
unsigned char *unit;
int i, ret;
char text[8];
char text[8 + 21]; /* should suffice for 64 bit oversize */
ret = new_cue(sheet, 2, 0);
if (ret <= 0)
@ -454,6 +454,9 @@ static int add_isrc_cue(struct cue_sheet *sheet, unsigned char ctladr, int tno,
unit[5] = isrc->owner[1];
unit[6] = isrc->owner[2];
sprintf(text, "%-2.2u%-5.5u", (unsigned int) isrc->year, isrc->serial);
sprintf(text, "%-2.2u", (unsigned int) isrc->year);
sprintf(text + 2, "%-5.5u", isrc->serial);
text[7] = 0;
unit[7] = text[0];
for (i = 1; i < 7; i++)
unit[9 + i] = text[i];

Loading…
Cancel
Save