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-widget.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 'misc/mc/files/patch-src-widget.c')
-rw-r--r-- | misc/mc/files/patch-src-widget.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/misc/mc/files/patch-src-widget.c b/misc/mc/files/patch-src-widget.c new file mode 100644 index 000000000000..578da4fcbff5 --- /dev/null +++ b/misc/mc/files/patch-src-widget.c @@ -0,0 +1,24 @@ +--- src/widget.c.orig Thu Dec 26 05:15:48 2002 ++++ src/widget.c Tue Jun 15 03:15:09 2004 +@@ -607,7 +607,7 @@ + if (!g->shown) + printw ("%*s", gauge_len, ""); + else { +- long percentage, columns; ++ int percentage, columns; + long total = g->max, done = g->current; + + if (total <= 0 || done < 0) { +@@ -1255,10 +1255,11 @@ + { + int first = min (x_first, x_last); + int last = max (x_first, x_last); ++ size_t len = strlen (&in->buffer [last]) + 1; + + in->point = first; + in->mark = first; +- strcpy (&in->buffer [first], &in->buffer [last]); ++ memmove (&in->buffer [first], &in->buffer [last], len); + in->need_push = 1; + } + |