"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/iso9660/iso9660.c" between
libcdio-2.0.0.tar.bz2 and libcdio-2.1.0.tar.bz2

About: GNU libcdio is a library for CD-ROM and CD image access.

iso9660.c  (libcdio-2.0.0.tar.bz2):iso9660.c  (libcdio-2.1.0.tar.bz2)
skipping to change at line 374 skipping to change at line 374
int time_zone, int time_zone,
/*out*/ iso9660_ltime_t *pvd_date) /*out*/ iso9660_ltime_t *pvd_date)
{ {
char *_pvd_date = (char *) pvd_date; char *_pvd_date = (char *) pvd_date;
memset (_pvd_date, (int) '0', 16); memset (_pvd_date, (int) '0', 16);
pvd_date->lt_gmtoff = (iso712_t) 0; /* Start out with time zone GMT. */ pvd_date->lt_gmtoff = (iso712_t) 0; /* Start out with time zone GMT. */
if (!p_tm) return; if (!p_tm) return;
#pragma GCC diagnostic ignored "-Wformat-truncation"
snprintf(_pvd_date, 17, snprintf(_pvd_date, 17,
"%4.4d%2.2d%2.2d" "%2.2d%2.2d%2.2d" "%2.2d", "%4.4d%2.2d%2.2d" "%2.2d%2.2d%2.2d" "%2.2d",
p_tm->tm_year + 1900, p_tm->tm_mon + 1, p_tm->tm_mday, p_tm->tm_year + 1900, p_tm->tm_mon + 1, p_tm->tm_mday,
p_tm->tm_hour, p_tm->tm_min, p_tm->tm_sec, p_tm->tm_hour, p_tm->tm_min, p_tm->tm_sec,
0 /* 1/100 secs */ ); 0 /* 1/100 secs */ );
/* Set time zone in 15-minute interval encoding. */ /* Set time zone in 15-minute interval encoding. */
pvd_date->lt_gmtoff -= (time_zone / 15); pvd_date->lt_gmtoff -= (time_zone / 15);
if (pvd_date->lt_gmtoff < -48 ) { if (pvd_date->lt_gmtoff < -48 ) {
skipping to change at line 633 skipping to change at line 634
cdio_assert (sizeof(iso9660_pvd_t) == ISO_BLOCKSIZE); cdio_assert (sizeof(iso9660_pvd_t) == ISO_BLOCKSIZE);
cdio_assert (pd != NULL); cdio_assert (pd != NULL);
cdio_assert (volume_id != NULL); cdio_assert (volume_id != NULL);
cdio_assert (application_id != NULL); cdio_assert (application_id != NULL);
memset(&ipd,0,sizeof(ipd)); /* paranoia? */ memset(&ipd,0,sizeof(ipd)); /* paranoia? */
/* magic stuff ... thatis CD XA marker... */ /* magic stuff ... thatis CD XA marker... */
strncpy(((char*)&ipd)+ISO_XA_MARKER_OFFSET, ISO_XA_MARKER_STRING, strncpy(((char*)&ipd)+ISO_XA_MARKER_OFFSET, ISO_XA_MARKER_STRING,
sizeof(ISO_XA_MARKER_STRING)); strlen(ISO_XA_MARKER_STRING)+1);
ipd.type = to_711(ISO_VD_PRIMARY); ipd.type = to_711(ISO_VD_PRIMARY);
iso9660_strncpy_pad (ipd.id, ISO_STANDARD_ID, 5, ISO9660_DCHARS); iso9660_strncpy_pad (ipd.id, ISO_STANDARD_ID, 5, ISO9660_DCHARS);
ipd.version = to_711(ISO_VERSION); ipd.version = to_711(ISO_VERSION);
iso9660_strncpy_pad (ipd.system_id, SYSTEM_ID, 32, ISO9660_ACHARS); iso9660_strncpy_pad (ipd.system_id, SYSTEM_ID, 32, ISO9660_ACHARS);
iso9660_strncpy_pad (ipd.volume_id, volume_id, 32, ISO9660_DCHARS); iso9660_strncpy_pad (ipd.volume_id, volume_id, 32, ISO9660_DCHARS);
ipd.volume_space_size = to_733(iso_size); ipd.volume_space_size = to_733(iso_size);
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)