From 683eb26ad160550c3abc051e621bdf13679d48cd Mon Sep 17 00:00:00 2001
From: Yorhel <git@yorhel.nl>
Date: Thu, 28 Apr 2022 11:19:27 +0200
Subject: [PATCH] Year + version bump for 1.17

---
 COPYING          | 2 +-
 ChangeLog        | 6 ++++++
 README           | 4 ++--
 configure.ac     | 2 +-
 src/browser.c    | 2 +-
 src/browser.h    | 2 +-
 src/delete.c     | 2 +-
 src/delete.h     | 2 +-
 src/dir.h        | 2 +-
 src/dir_common.c | 2 +-
 src/dir_export.c | 2 +-
 src/dir_import.c | 2 +-
 src/dir_mem.c    | 2 +-
 src/dir_scan.c   | 2 +-
 src/dirlist.c    | 2 +-
 src/dirlist.h    | 2 +-
 src/exclude.c    | 2 +-
 src/exclude.h    | 2 +-
 src/global.h     | 2 +-
 src/help.c       | 2 +-
 src/help.h       | 2 +-
 src/main.c       | 2 +-
 src/path.c       | 2 +-
 src/path.h       | 2 +-
 src/quit.c       | 2 +-
 src/quit.h       | 2 +-
 src/shell.c      | 2 +-
 src/shell.h      | 2 +-
 src/util.c       | 2 +-
 src/util.h       | 2 +-
 30 files changed, 36 insertions(+), 30 deletions(-)

diff --git a/COPYING b/COPYING
index 2ff764f..701ae4f 100644
--- a/COPYING
+++ b/COPYING
@@ -1,4 +1,4 @@
-Copyright (c) 2007-2021 Yoran Heling
+Copyright (c) 2007-2022 Yoran Heling
 
 Permission is hereby granted, free of charge, to any person obtaining
 a copy of this software and associated documentation files (the
diff --git a/ChangeLog b/ChangeLog
index c15292d..87ea9eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1.17 - 2022-04-28
+	- Add 'dark-bg' color scheme and use that by default
+	- Use natural sort order when sorting by file name
+	- Improve compatibility with C89 environments
+	- Fix wrong assumption about errno not being set by realloc()
+
 1.16 - 2021-07-02
 	- Increase width of size bar depending on terminal size (Christian Göttsche)
 	- Set/increment $NCDU_LEVEL variable when spawning a shell
diff --git a/README b/README
index 709e913..2804f35 100644
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-ncdu 1.16
+ncdu 1.17
 =========
 
 DESCRIPTION
@@ -33,7 +33,7 @@ INSTALL
 
 COPYING
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/configure.ac b/configure.ac
index 9d57782..1f6e94d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
 
-AC_INIT([ncdu],[1.16],[projects@yorhel.nl])
+AC_INIT([ncdu],[1.17],[projects@yorhel.nl])
 AC_CONFIG_SRCDIR([src/global.h])
 AC_CONFIG_HEADERS([config.h])
 AM_INIT_AUTOMAKE([foreign std-options subdir-objects])
diff --git a/src/browser.c b/src/browser.c
index c05469d..1f8fd66 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/browser.h b/src/browser.h
index 03c3f8b..b23ddf2 100644
--- a/src/browser.h
+++ b/src/browser.h
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/delete.c b/src/delete.c
index ab3534c..1645083 100644
--- a/src/delete.c
+++ b/src/delete.c
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/delete.h b/src/delete.h
index 9b2dcd7..311a881 100644
--- a/src/delete.h
+++ b/src/delete.h
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/dir.h b/src/dir.h
index c46bb31..7dc9757 100644
--- a/src/dir.h
+++ b/src/dir.h
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/dir_common.c b/src/dir_common.c
index c9d2749..cbac6af 100644
--- a/src/dir_common.c
+++ b/src/dir_common.c
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/dir_export.c b/src/dir_export.c
index 3ca8fd7..b458ba4 100644
--- a/src/dir_export.c
+++ b/src/dir_export.c
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/dir_import.c b/src/dir_import.c
index 687e93f..b76e3a7 100644
--- a/src/dir_import.c
+++ b/src/dir_import.c
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/dir_mem.c b/src/dir_mem.c
index e8cf911..ed6afc8 100644
--- a/src/dir_mem.c
+++ b/src/dir_mem.c
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/dir_scan.c b/src/dir_scan.c
index e1c15b3..7c1bc77 100644
--- a/src/dir_scan.c
+++ b/src/dir_scan.c
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/dirlist.c b/src/dirlist.c
index 2352ee5..c897ce6 100644
--- a/src/dirlist.c
+++ b/src/dirlist.c
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/dirlist.h b/src/dirlist.h
index 0b0493a..702b1c7 100644
--- a/src/dirlist.h
+++ b/src/dirlist.h
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/exclude.c b/src/exclude.c
index 6a343db..a647c6b 100644
--- a/src/exclude.c
+++ b/src/exclude.c
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/exclude.h b/src/exclude.h
index 83f6c09..4d4a1a7 100644
--- a/src/exclude.h
+++ b/src/exclude.h
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/global.h b/src/global.h
index 52f899c..74e468d 100644
--- a/src/global.h
+++ b/src/global.h
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/help.c b/src/help.c
index e0730f1..2dfbf3b 100644
--- a/src/help.c
+++ b/src/help.c
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/help.h b/src/help.h
index 0fbc38e..12e0fef 100644
--- a/src/help.h
+++ b/src/help.h
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/main.c b/src/main.c
index 19280ee..c9562fd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/path.c b/src/path.c
index 41232c7..aaea32d 100644
--- a/src/path.c
+++ b/src/path.c
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/path.h b/src/path.h
index b70adb7..d07d83c 100644
--- a/src/path.h
+++ b/src/path.h
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/quit.c b/src/quit.c
index dddade5..9b3d471 100644
--- a/src/quit.c
+++ b/src/quit.c
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2015-2021 Yoran Heling
+  Copyright (c) 2015-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/quit.h b/src/quit.h
index 1031891..e431656 100644
--- a/src/quit.h
+++ b/src/quit.h
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2015-2021 Yoran Heling
+  Copyright (c) 2015-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/shell.c b/src/shell.c
index 289ebe2..24fe2f1 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
   Shell support: Copyright (c) 2014 Thomas Jarosch
 
   Permission is hereby granted, free of charge, to any person obtaining
diff --git a/src/shell.h b/src/shell.h
index 6b5709d..4e0c236 100644
--- a/src/shell.h
+++ b/src/shell.h
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
   Shell support: Copyright (c) 2014 Thomas Jarosch
 
   Permission is hereby granted, free of charge, to any person obtaining
diff --git a/src/util.c b/src/util.c
index 490a372..fcee03a 100644
--- a/src/util.c
+++ b/src/util.c
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
diff --git a/src/util.h b/src/util.h
index 19689d3..a8b6553 100644
--- a/src/util.h
+++ b/src/util.h
@@ -1,6 +1,6 @@
 /* ncdu - NCurses Disk Usage
 
-  Copyright (c) 2007-2021 Yoran Heling
+  Copyright (c) 2007-2022 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
-- 
GitLab