Made clear what the patch fixes and add notes on code sources

This commit is contained in:
Piotr Szczepanik 2021-04-18 22:16:07 +02:00
parent 8b3efeedd5
commit 816187bd9e
No known key found for this signature in database
GPG key ID: 0305358EB314F205
3 changed files with 12 additions and 3 deletions

View file

@ -1,3 +1,11 @@
This patch file contains code from @avafinger's htop_2.2.2 repository.
It is the result of diff between:
https://github.com/avafinger/htop_2.2.2/commit/dc21e5f6
and:
https://github.com/hishamhm/htop/tree/2.2.0
---
diff --git a/Armbian_Meter.c b/Armbian_Meter.c
new file mode 100644
index 0000000..183032b

View file

@ -55,11 +55,13 @@ diff --git a/StringUtils.c b/StringUtils.c
index 0578cde..fd1c3db 100644
--- a/StringUtils.c
+++ b/StringUtils.c
@@ -154,3 +154,15 @@ char* String_readLine(FILE* fd) {
@@ -154,3 +154,17 @@ char* String_readLine(FILE* fd) {
at = buffer + bufSize - step;
}
}
+
+// Function borowed from upstream htop, see:
+// https://github.com/htop-dev/htop/blob/feec16cbb53dabc6a52ef2f69a6a13798be82617/XUtils.c#L196-L206
+size_t String_safeStrncpy(char *restrict dest, const char *restrict src, size_t size) {
+ assert(size > 0);
+

View file

@ -1,9 +1,8 @@
780-fix-option-string.patch
fix-linux-process.patch
avafinger-cpu-monitor.patch
fix-unchecked-buffer-writes-in-avafinger-cpu-monitor.patch
remove-fancy-flashing.patch
fix-cpufreq-meter-on-biglittle.patch
fix-cpufreq-meter-for-non-root.patch
cpu-temperatute-from-hwmon.patch
fix-unchecked-buffer-writes.patch