Browse Source

Making sure in cdrskin that off_t is large enough before starting libburn

1.3.2
Thomas Schmitt 9 years ago
parent
commit
2a991bbab3
  1. 10
      cdrskin/cdrskin.c
  2. 2
      cdrskin/cdrskin_timestamp.h

10
cdrskin/cdrskin.c

@ -2104,6 +2104,16 @@ int Cdrpreskin_initialize_lib(struct CdrpreskiN *preskin, int flag)
{
int ret, major, minor, micro;
/* Needed are at least 44 bits in signed type off_t .
This is a popular mistake in configuration or compilation.
*/
if(sizeof(off_t) < 6) {
fprintf(stderr,
"\ncdrskin: FATAL : Compile time misconfiguration. sizeof(off_t) too small.\n"
);
return(0);
}
/* This is the minimum requirement of cdrskin towards the libburn header
at compile time.
It gets compared against the version macros in libburn/libburn.h :

2
cdrskin/cdrskin_timestamp.h

@ -1 +1 @@
#define Cdrskin_timestamP "2013.06.09.163052"
#define Cdrskin_timestamP "2013.06.28.104134"

Loading…
Cancel
Save