aboutsummaryrefslogtreecommitdiff
path: root/textproc/agrep
diff options
context:
space:
mode:
authorWolfram Schneider <wosch@FreeBSD.org>2003-11-12 14:26:19 +0000
committerWolfram Schneider <wosch@FreeBSD.org>2003-11-12 14:26:19 +0000
commit99703777c9b62e32e554dda29b81ae1e4a7a4a21 (patch)
treeddd282ab9f4ff5145aa81b5b048d01b7e11b55e2 /textproc/agrep
parent36c0b75c33f269e5492ac2e028874edf3dc32ddd (diff)
downloadports-99703777c9b62e32e554dda29b81ae1e4a7a4a21.tar.gz
ports-99703777c9b62e32e554dda29b81ae1e4a7a4a21.zip
Notes
Diffstat (limited to 'textproc/agrep')
-rw-r--r--textproc/agrep/files/patch-strncpy11
1 files changed, 11 insertions, 0 deletions
diff --git a/textproc/agrep/files/patch-strncpy b/textproc/agrep/files/patch-strncpy
new file mode 100644
index 000000000000..258f9af23f62
--- /dev/null
+++ b/textproc/agrep/files/patch-strncpy
@@ -0,0 +1,11 @@
+--- main.c 2003/11/12 14:09:11 1.1
++++ main.c 2003/11/12 14:09:31
+@@ -751,7 +751,7 @@
+ }
+ if (!(PAT_FILE) && Pattern[0] == '\0') { /* Pattern not set with -e option */
+ if (argc == 0) usage();
+- strcpy(Pattern, *argv);
++ strncpy(Pattern, *argv, sizeof(Pattern));
+ argc--;
+ argv++;
+ }