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

This commit is contained in:
Thomas Schmitt 2013-06-28 10:42:04 +00:00
parent 9aaf2d5ad7
commit be1a175ee6
2 changed files with 11 additions and 1 deletions

View File

@ -2104,6 +2104,16 @@ int Cdrpreskin_initialize_lib(struct CdrpreskiN *preskin, int flag)
{ {
int ret, major, minor, micro; 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 /* This is the minimum requirement of cdrskin towards the libburn header
at compile time. at compile time.
It gets compared against the version macros in libburn/libburn.h : It gets compared against the version macros in libburn/libburn.h :

View File

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