summaryrefslogtreecommitdiff
path: root/lang/newlisp-devel/files
diff options
context:
space:
mode:
Diffstat (limited to 'lang/newlisp-devel/files')
-rw-r--r--lang/newlisp-devel/files/patch-newlisp.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/lang/newlisp-devel/files/patch-newlisp.c b/lang/newlisp-devel/files/patch-newlisp.c
deleted file mode 100644
index 655890faec64..000000000000
--- a/lang/newlisp-devel/files/patch-newlisp.c
+++ /dev/null
@@ -1,27 +0,0 @@
-
-$FreeBSD$
-
---- newlisp.c.orig
-+++ newlisp.c
-@@ -515,16 +515,16 @@
- else if(getenv("DOCUMENT_ROOT"))
- strncpy(initFile, getenv("DOCUMENT_ROOT"), PATH_MAX - 16);
-
-- strncat(initFile, "/.", 2);
-- strncat(initFile, INIT_FILE, 8);
-+ strlcat(initFile, "/.", sizeof(initFile));
-+ strlcat(initFile, INIT_FILE, sizeof(initFile));
- if(loadFile(initFile, 0, 0, mainContext) == NULL)
- {
- envPtr = getenv("NEWLISPDIR");
- if(envPtr)
- {
-- strncpy(initFile, envPtr, PATH_MAX - 16);
-- strncat(initFile, "/", 1);
-- strncat(initFile, INIT_FILE, 8);
-+ strlcpy(initFile, envPtr, sizeof(initFile));
-+ strlcat(initFile, "/", sizeof(initFile));
-+ strlcat(initFile, INIT_FILE, sizeof(initFile));
- loadFile(initFile, 0, 0, mainContext);
- }
- }