cd-info.c iso-info.c More error-tolerant patch from Stanislav Brabec

at SuSE.

 iso9660.hpp: patch to compile libcdio with gcc 4.3 from
Cristian Rodriguez via Stanislav Brabec. Add return statement in
function returning non-void.

mmc-tool.c: remove out-of-bound array access.
This commit is contained in:
rocky
2008-01-09 04:26:23 +00:00
parent b6868ddc8f
commit 1f8a5f9d54
4 changed files with 34 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
/* -*- C++ -*-
$Id: iso9660.hpp,v 1.10 2007/11/19 19:32:11 flameeyes Exp $
$Id: iso9660.hpp,v 1.11 2008/01/09 04:26:23 rocky Exp $
Copyright (C) 2006 Rocky Bernstein <rocky@panix.com>
Copyright (C) 2006, 2008 Rocky Bernstein <rocky@gnu.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -32,6 +32,7 @@
#include <string.h>
#include <cstdlib>
#include <vector> // vector class library
#include <cstdlib>
using namespace std;
/** ISO 9660 class.
@@ -138,6 +139,7 @@ public:
{
free(p_stat);
this->p_stat = right.p_stat;
return right;
}
~Stat()