diff options
Diffstat (limited to 'misc/mc/files/patch-src-file.c')
-rw-r--r-- | misc/mc/files/patch-src-file.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/misc/mc/files/patch-src-file.c b/misc/mc/files/patch-src-file.c deleted file mode 100644 index 75db157dfd51..000000000000 --- a/misc/mc/files/patch-src-file.c +++ /dev/null @@ -1,31 +0,0 @@ ---- src/file.c.orig Fri Dec 27 01:04:10 2002 -+++ src/file.c Tue Jun 15 03:15:09 2004 -@@ -366,7 +366,7 @@ - dst_is_symlink = 0; - - retry_src_readlink: -- len = mc_readlink (src_path, link_target, MC_MAXPATHLEN); -+ len = mc_readlink (src_path, link_target, MC_MAXPATHLEN - 1); - if (len < 0) { - return_status = - file_error (_(" Cannot read source link \"%s\" \n %s "), -@@ -715,6 +715,7 @@ - gettimeofday (&tv_current, NULL); - - if (n_read > 0) { -+ char *t = buf; - n_read_total += n_read; - - /* Windows NT ftp servers report that files have no -@@ -729,9 +730,10 @@ - - /* dst_write */ - while ((n_written = -- mc_write (dest_desc, buf, n_read)) < n_read) { -+ mc_write (dest_desc, t, n_read)) < n_read) { - if (n_written > 0) { - n_read -= n_written; -+ t += n_written; - continue; - } - return_status = |