chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
journalctl: unify ellipsation handling between journalctl and systemctl
[elogind.git]
/
src
/
delta
/
delta.c
diff --git
a/src/delta/delta.c
b/src/delta/delta.c
index eef6536b01f0897d9d182bc50d0f0f01b00e6b2c..803d2a7fc798bdc69b86b26e81b7a8b1959ec329 100644
(file)
--- a/
src/delta/delta.c
+++ b/
src/delta/delta.c
@@
-176,11
+176,12
@@
static int enumerate_dir(Hashmap *top, Hashmap *bottom, const char *path) {
}
for (;;) {
- struct dirent *de, buf;
+ struct dirent *de;
+ union dirent_storage buf;
int k;
char *p;
- k = readdir_r(d, &buf, &de);
+ k = readdir_r(d, &buf
.de
, &de);
if (k != 0) {
r = -k;
goto finish;