diff options
Diffstat (limited to 'textproc/agrep/files/patch-strncpy')
-rw-r--r-- | textproc/agrep/files/patch-strncpy | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/textproc/agrep/files/patch-strncpy b/textproc/agrep/files/patch-strncpy deleted file mode 100644 index 258f9af23f62..000000000000 --- a/textproc/agrep/files/patch-strncpy +++ /dev/null @@ -1,11 +0,0 @@ ---- 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++; - } |