summaryrefslogtreecommitdiff
path: root/x11/kdebase2/patches
diff options
context:
space:
mode:
Diffstat (limited to 'x11/kdebase2/patches')
-rw-r--r--x11/kdebase2/patches/patch-an12
1 files changed, 8 insertions, 4 deletions
diff --git a/x11/kdebase2/patches/patch-an b/x11/kdebase2/patches/patch-an
index 4c1ae5b41ab..5883122b802 100644
--- a/x11/kdebase2/patches/patch-an
+++ b/x11/kdebase2/patches/patch-an
@@ -1,4 +1,4 @@
-$NetBSD: patch-an,v 1.2 2001/10/15 22:46:00 skrll Exp $
+$NetBSD: patch-an,v 1.3 2001/11/28 13:34:19 skrll Exp $
--- kcontrol/info/info_netbsd.cpp.orig Fri Sep 7 20:23:47 2001
+++ kcontrol/info/info_netbsd.cpp
@@ -206,7 +206,7 @@ $NetBSD: patch-an,v 1.2 2001/10/15 22:46:00 skrll Exp $
device = strsep(&line, " ");
-@@ -286,10 +303,28 @@
+@@ -286,10 +303,32 @@
(void) strsep(&line, " "); // consume word "type"
type = strsep(&line, " ");
@@ -215,8 +215,12 @@ $NetBSD: patch-an,v 1.2 2001/10/15 22:46:00 skrll Exp $
- olditem = new QListViewItem(lbox, olditem, device, mountpoint,
- type, flags);
+ // Skip leading '(' and trailing ')'
-+ line++;
-+ flags = strsep(&line, ")");
++ if (line != NULL) {
++ line++;
++ flags = strsep(&line, ")");
++ } else {
++ flags = "";
++ }
+
+ if (statfs(mountpoint, &sfs) == 0) {
+ tsz = ((1LL * sfs.f_blocks * sfs.f_bsize / 1024) + 513)