diff options
author | pixel <pixel> | 2004-10-19 15:58:41 +0000 |
---|---|---|
committer | pixel <pixel> | 2004-10-19 15:58:41 +0000 |
commit | 551a53e1b9c0fb7699e4e44e273d9f57111a1c21 (patch) | |
tree | 07c478f7b19b2a5036bf0cbbc57e3e9f35dab797 /lib/isobuilder.cpp | |
parent | c8f480317b0571b63797f03d7bda5d15b6d9fe5b (diff) |
Fixing cd-tool bugs.
Diffstat (limited to 'lib/isobuilder.cpp')
-rw-r--r-- | lib/isobuilder.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/isobuilder.cpp b/lib/isobuilder.cpp index 1414e96..2b60131 100644 --- a/lib/isobuilder.cpp +++ b/lib/isobuilder.cpp @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: isobuilder.cpp,v 1.13 2004-10-19 01:27:29 pixel Exp $ */
+/* $Id: isobuilder.cpp,v 1.14 2004-10-19 15:58:41 pixel Exp $ */
#include "isobuilder.h"
@@ -289,7 +289,11 @@ int isobuilder::DirTree::buildentry(Byte * buffer, int spaceleft, bool put_xa) { d->BESector = cdutils::swap_dword(sector);
d->Size = size;
d->BESize = cdutils::swap_dword(size);
- d->Year = creation.year - 1900;
+ if (creation.year >= 1000) {
+ d->Year = creation.year - 1900;
+ } else {
+ d->Year = creation.year;
+ }
d->Month = creation.month;
d->Day = creation.day;
d->Hour = creation.hour;
@@ -840,7 +844,7 @@ void isobuilder::close(Handle * cue, int mode, int nsects) throw (GeneralExcepti sprintf(cdatas + 446, "%-128s", pvd.prepid.to_charp());
sprintf(cdatas + 574, "%-128s", pvd.appid.to_charp());
sprintf(cdatas + 702, "%-37s", pvd.copyright.to_charp());
- sprintf(cdatas + 739, "%-37s", pvd.appid.to_charp());
+ sprintf(cdatas + 739, "%-37s", pvd.abstract.to_charp());
sprintf(cdatas + 776, "%-37s", pvd.biblio.to_charp());
pvd.volcreat.dump(datas + 813);
|