summaryrefslogtreecommitdiff
path: root/net-ftp/filezilla/files/filezilla-3.66.4-gcc14.patch
blob: 0c66931d31aacb301250401fed5697e3ef50fb35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/src/putty/unix/uxsftp.c b/src/putty/unix/uxsftp.c
index f078d97..05ec2ff 100644
--- a/src/putty/unix/uxsftp.c
+++ b/src/putty/unix/uxsftp.c
@@ -211,7 +211,7 @@ int read_from_file(RFile *f, void *buffer, int length)
 #if 1
     if (f->state == ok && !f->remaining_) {
         fznotify1(sftp_io_nextbuf, 0);
-        char const* s = priority_read();
+        char *s = priority_read();
         if (s[1] == '-') {
             f->state = error;
             return -1;
@@ -220,11 +220,11 @@ int read_from_file(RFile *f, void *buffer, int length)
             f->state = eof;
         }
         else {
-            char const* p = s + 1;
+            char *p = s + 1;
             f->buffer_ = f->memory_ + next_int(&p);
             f->remaining_ = (int)next_int(&p);
         }
-        sfree(s);
+        sfree((void *)s);
     }
     if (f->state == eof) {
         return 0;