[Pkg-wmaker-commits] [wmbattery] 77/241: * Correct off-by-one in acpi.c
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Mon Aug 24 23:37:35 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmbattery.
commit 20f5a76671c6da61d885b933ef2f5ed348299243
Author: joey <joey at a4a2c43b-8ac3-0310-8836-e0e880c912e2>
Date: Tue May 15 17:25:00 2007 +0000
* Correct off-by-one in acpi.c
---
acpi.c | 2 +-
debian/changelog | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/acpi.c b/acpi.c
index 65062d2..ac5a701 100644
--- a/acpi.c
+++ b/acpi.c
@@ -88,7 +88,7 @@ inline char *get_acpi_file (const char *file) {
fd = open(file, O_RDONLY);
if (fd == -1) return NULL;
end = read(fd, buf, sizeof(buf));
- buf[end] = '\0';
+ buf[end-1] = '\0';
close(fd);
return buf;
}
diff --git a/debian/changelog b/debian/changelog
index 604c4e6..ba48de9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+wmbattery (2.28) UNRELEASED; urgency=low
+
+ * Correct off-by-one in acpi.c
+
+ -- Joey Hess <joeyh at debian.org> Tue, 15 May 2007 13:24:45 -0400
+
wmbattery (2.27) unstable; urgency=low
* Minor bug fix to acpi code, don't skip over dotfiles.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbattery.git
More information about the Pkg-wmaker-commits
mailing list