Commit c75b4c72 authored by cRTrn13's avatar cRTrn13

aacs, bd objs now calloc()d instead of malloc()d (thanks hpi1)

parent ca69ba6f
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
BLURAY *bd_open(const char* device_path, const char* keyfile_path) BLURAY *bd_open(const char* device_path, const char* keyfile_path)
{ {
BLURAY *bd = malloc(sizeof(BLURAY)); BLURAY *bd = calloc(1, sizeof(BLURAY));
if (device_path) { if (device_path) {
strncpy(bd->device_path, device_path, 100); strncpy(bd->device_path, device_path, 100);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment