mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-23 22:32:57 +00:00
clang: Fix warnings found through clang.
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
+1
-1
@@ -85,7 +85,7 @@ static int i830_lvds_acpi_lid_state(void)
|
||||
}
|
||||
}
|
||||
state_name = malloc(strlen(ACPI_LID) + strlen(lid_dent->d_name) + 7);
|
||||
memset(state_name, 0, sizeof(state_name));
|
||||
memset(state_name, 0, strlen(ACPI_LID) + strlen(lid_dent->d_name) + 7);
|
||||
strcat(state_name, ACPI_LID);
|
||||
strcat(state_name, lid_dent->d_name);
|
||||
strcat(state_name, "/state");
|
||||
|
||||
Reference in New Issue
Block a user