Package: xdu
Version: 3.0-19
Followup-For: Bug #922875
Dear Maintainer,
Here's a patch to fix the issue.
-- System Information:
Debian Release: 10.0
Architecture: amd64 (x86_64)
Kernel: Linux 4.14.0-2-amd64 (SMP w/12 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages xdu depends on:
ii libc6 2.28-10
ii libx11-6 2:1.6.7-1
ii libxaw7 2:1.0.13-1+b2
ii libxt6 1:1.1.5-1
xdu recommends no packages.
xdu suggests no packages.
-- no debconf information
--- a/xdu.c
+++ b/xdu.c
@@ -305,6 +305,10 @@
}
name++;
}
+ if (arg == 0 && indx == 0) {
+ top.size = size;
+ return;
+ }
buf[indx] = 0;
path[arg++] = strdup(buf);
path[arg] = NULL;