Commit 99d700bb7b35cfc3f48b0e39ce549e0eb149dc76

Steffen Jaeckel 2013-11-24T15:29:54

Merge branch 'ramkumarkoppu/patch-1' into develop

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/bn_mp_init_copy.c b/bn_mp_init_copy.c
index ed58c16..ab87d23 100644
--- a/bn_mp_init_copy.c
+++ b/bn_mp_init_copy.c
@@ -20,7 +20,7 @@ int mp_init_copy (mp_int * a, mp_int * b)
 {
   int     res;
 
-  if ((res = mp_init (a)) != MP_OKAY) {
+  if ((res = mp_init_size (a, b->used)) != MP_OKAY) {
     return res;
   }
   return mp_copy (b, a);