diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2004-06-12 22:18:46 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2004-06-12 22:18:46 +0000 |
commit | 667137ea77455560e143ae16550f7f0fef38116f (patch) | |
tree | 2e18f797ac86a6bbd0b0121be1ee7c446e268da7 /editors/em/files/patch-ag | |
parent | 3dc11612eecdcb6f0c253f5d555d8d39e7f7a43a (diff) | |
download | ports-667137ea77455560e143ae16550f7f0fef38116f.tar.gz ports-667137ea77455560e143ae16550f7f0fef38116f.zip |
Notes
Diffstat (limited to 'editors/em/files/patch-ag')
-rw-r--r-- | editors/em/files/patch-ag | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/editors/em/files/patch-ag b/editors/em/files/patch-ag index 993910dc6449..33267b37d56a 100644 --- a/editors/em/files/patch-ag +++ b/editors/em/files/patch-ag @@ -1,5 +1,5 @@ ---- main.c.orig Sat Jan 27 05:31:22 2001 -+++ main.c Mon Dec 31 19:08:46 2001 +--- main.c.orig Fri Jan 26 21:31:22 2001 ++++ main.c Sun Jun 13 00:19:43 2004 @@ -49,11 +49,17 @@ * * 4.0 Petri Kutvonen, 1-Sep-91 @@ -22,10 +22,13 @@ */ #include <stdio.h> -@@ -89,6 +95,10 @@ +@@ -89,6 +95,13 @@ #include <signal.h> #endif ++static int prtuse(char*); ++ ++ +#if defined(TOYCODE) && defined(BSD) +#include <sys/unistd.h> +#include <errno.h> @@ -33,7 +36,7 @@ #if CALLED emacs(argc, argv) #else -@@ -225,9 +235,21 @@ +@@ -225,9 +238,21 @@ #if TOYCODE case 't': /* -t for tabmask change */ case 'T': @@ -58,7 +61,7 @@ #endif default: /* unknown switch */ /* ignore this for now */ -@@ -273,7 +295,11 @@ +@@ -273,7 +298,11 @@ sink = strlen(argv[carg]); if (sink >= 2 && (argv[carg][sink-2] == '.' && (argv[carg][sink-1] == 'c' || argv[carg][sink-1] == 'h'))) @@ -71,7 +74,16 @@ #endif } } -@@ -913,5 +939,44 @@ +@@ -769,7 +798,7 @@ + ALWAYS null terminate + */ + +-char *strncpy(dst, src, maxlen) ++char *mystrncpy(dst, src, maxlen) + + char *dst; /* destination of copied string */ + char *src; /* source */ +@@ -913,5 +941,44 @@ #undef exit exit(status); #endif |