openbsd-ports/archivers/par2cmdline/patches/patch-diskfile_cpp
2004-06-27 23:06:47 +00:00

22 lines
629 B
Plaintext

$OpenBSD: patch-diskfile_cpp,v 1.2 2004/06/27 23:06:47 jolan Exp $
--- diskfile.cpp.orig Mon Apr 12 06:25:37 2004
+++ diskfile.cpp Sun Jun 27 17:56:29 2004
@@ -17,6 +17,8 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#include <sys/param.h>
+
#include "par2cmdline.h"
#ifdef _MSC_VER
@@ -562,7 +564,7 @@ string DiskFile::GetCanonicalPathname(st
return filename;
// Get the current directory
- char curdir[1000];
+ char curdir[MAXPATHLEN];
if (0 == getcwd(curdir, sizeof(curdir)))
{
return filename;