From: Michael Tremer Date: Sat, 25 Jan 2025 18:00:31 +0000 (+0000) Subject: os: Actually read some stuff from DMI X-Git-Tag: 0.9.30~375 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5a8a0237575a8766b6b795fac5ce9d31eec59a8;p=pakfire.git os: Actually read some stuff from DMI Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/os.c b/src/pakfire/os.c index 85856dcb..2a342ba3 100644 --- a/src/pakfire/os.c +++ b/src/pakfire/os.c @@ -52,7 +52,7 @@ static int __pakfire_read_dmi(char* buffer, size_t length, const char* key) { } // Read the file into the buffer - size_t bytes_read = fread(buffer, length - 1, 1, f); + size_t bytes_read = fread(buffer, 1, length - 1, f); // Always terminate the array buffer[bytes_read] = '\0';