From 08e4c4e315cd1fb050a57dcbef01e4215f69f082 Mon Sep 17 00:00:00 2001
From: leslie <unknown>
Date: Fri, 26 Sep 2008 08:11:29 +0800
Subject: [PATCH] irdeto1: fix buffer overflow in KID save

---
 systems/irdeto/irdeto1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/systems/irdeto/irdeto1.c b/systems/irdeto/irdeto1.c
index a54b17c..ceaf718 100644
--- a/systems/irdeto/irdeto1.c
+++ b/systems/irdeto/irdeto1.c
@@ -50,7 +50,7 @@ bool cIrdCardInfo::Parse(const char *line)
 
 cString cIrdCardInfo::ToString(bool hide)
 {
-  char s1[20], s2[20], s3[20], s4[20];
+  char s1[20], s2[24], s3[20], s4[20];
   return cString::sprintf("%s %s %02x %s %s",
      HexStr(s1,hexSer,sizeof(hexSer)),HexStr(s2,HMK,sizeof(HMK)),provBase,
      HexStr(s3,provId,sizeof(provId)),HexStr(s4,PMK,sizeof(PMK)));
-- 
2.39.5