aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/spegla/files/patch-spegla.c
blob: a0a7f2af1c5c9e1aa22c3b293fbe549ecf41a1d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- spegla.c.orig   Sat May 27 22:38:14 2000
+++ spegla.c    Thu Feb  1 15:39:24 2001
@@ -728,7 +728,7 @@
 #ifdef ULTRIX
    if ((f.fd_req.bfreen * 1024) < minfree)
 #else
-   if ((f.f_bsize * f.f_bavail) < minfree)
+   if (((long long)f.f_bsize * f.f_bavail) < minfree)
 #endif
        e_errx(1, "%s: Not enough space left", path);
 
@@ -953,6 +953,7 @@
        }
        buf[i] = p[j];
    }
+   buf[i] = '\0';
    *val = buf;
 ret:
    if (show)