summaryrefslogtreecommitdiff
path: root/security/trousers/files/patch-src-tcs-tcs_aik.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/trousers/files/patch-src-tcs-tcs_aik.c')
-rw-r--r--security/trousers/files/patch-src-tcs-tcs_aik.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/trousers/files/patch-src-tcs-tcs_aik.c b/security/trousers/files/patch-src-tcs-tcs_aik.c
new file mode 100644
index 000000000000..9520bf69fb38
--- /dev/null
+++ b/security/trousers/files/patch-src-tcs-tcs_aik.c
@@ -0,0 +1,11 @@
+--- src/tcs/tcs_aik.c.orig 2010-06-10 05:20:44.000000000 +0900
++++ src/tcs/tcs_aik.c 2010-10-24 21:04:04.834556754 +0900
+@@ -66,7 +66,7 @@
+ UnloadBlob_UINT16(offset, &key->size, blob);
+
+ if (key->size > 0) {
+- key->data = (BYTE *)malloc(key->size);
++ key->data = malloc(key->size);
+ if (key->data == NULL) {
+ LogError("malloc of %hu bytes failed.", key->size);
+ key->size = 0;