spack/var/spack/repos/builtin/packages/openrasmol/rasmol_help.patch
2021-02-18 13:09:38 +01:00

23 lines
533 B
Diff

--- a/src/command.c 2021-02-04 01:59:48.968985028 +0900
+++ b/src/command.c 2021-02-04 02:02:15.548984240 +0900
@@ -118,6 +118,10 @@
#include <stdio.h>
#include <time.h>
+#include <limits.h>
+#ifndef PATH_MAX
+#define PATH_MAX 1024
+#endif
#if !defined(IBMPC) && !defined(VMS) && !defined(APPLEMAC)
#include <pwd.h>
@@ -229,7 +233,7 @@
#define HelpPool 16
static char *HelpFileName;
-static char HelpFileBuf[80];
+static char HelpFileBuf[PATH_MAX];
static HlpEntry __far *FreeInfo;
static HlpEntry __far *HelpInfo;