]> git.ipfire.org Git - pakfire.git/commitdiff
os: Actually read some stuff from DMI
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 25 Jan 2025 18:00:31 +0000 (18:00 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 25 Jan 2025 18:00:31 +0000 (18:00 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/os.c

index 85856dcb207f537b01a6f44617b5da869a15bd05..2a342ba30b5cc81d041477e61760c385f80cfff5 100644 (file)
@@ -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';