diff options
author | Max Khon <fjoe@FreeBSD.org> | 2004-06-14 20:56:00 +0000 |
---|---|---|
committer | Max Khon <fjoe@FreeBSD.org> | 2004-06-14 20:56:00 +0000 |
commit | 694ecd186a9b12f5115b130cb96dc3428c8dc76b (patch) | |
tree | f1a6e73aac755d8e00dfb5f10ac6a3618d9becf9 /misc/mc/files/patch-src-complete.c | |
parent | - Strip binaries (diff) |
- Fix CAN-2004-0226, CAN-2004-0231, CAN-2004-0232.
- Do not use :: in patch file names.
- Patch for CAN-2003-1023 is now contained in patch-vfs-direntry.c.
- Bump PORTREVISION.
Submitted by: Jakub Jelinek <jakub@redhat.com>
Notes
Notes:
svn path=/head/; revision=111487
Diffstat (limited to '')
-rw-r--r-- | misc/mc/files/patch-src-complete.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/misc/mc/files/patch-src-complete.c b/misc/mc/files/patch-src-complete.c new file mode 100644 index 000000000000..6bcb16098ecd --- /dev/null +++ b/misc/mc/files/patch-src-complete.c @@ -0,0 +1,30 @@ +--- src/complete.c.orig Wed Nov 13 08:56:41 2002 ++++ src/complete.c Tue Jun 15 03:15:09 2004 +@@ -270,7 +270,7 @@ + *temp = '$'; + if (isbrace) + temp [1] = '{'; +- strncpy (temp + 1 + isbrace, *env_p, p - *env_p); ++ memcpy (temp + 1 + isbrace, *env_p, p - *env_p); + if (isbrace) + strcpy (temp + 2 + (p - *env_p), "}"); + else +@@ -605,8 +605,7 @@ + matches = i; + match_list [matches + 1] = NULL; + match_list[0] = g_malloc (low + 1); +- strncpy (match_list[0], match_list[1], low); +- match_list[0][low] = 0; ++ g_strlcpy (match_list[0], match_list[1], low + 1); + } + } else { /* There were no matches. */ + g_free (match_list); +@@ -806,7 +805,7 @@ + *(p++) = *(q++); + *p = 0; + } +- strncpy (in->buffer + start, text, len - start + end); ++ memcpy (in->buffer + start, text, len - start + end); + in->point += len; + update_input (in, 1); + end += len; |