]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(nettle_mpz_get_str_256): Fixed handling of leading
authorNiels Möller <nisse@lysator.liu.se>
Fri, 7 Dec 2001 16:16:15 +0000 (17:16 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Fri, 7 Dec 2001 16:16:15 +0000 (17:16 +0100)
zeroes.

Rev: src/nettle/bignum.c:1.2

bignum.c

index a8b2164b7af36f8443e07055e5448a9ef8cbf527..c9f5a460c28f58fda2a3d406ae474022f41c383f 100644 (file)
--- a/bignum.c
+++ b/bignum.c
@@ -65,7 +65,7 @@ nettle_mpz_get_str_256(unsigned length, uint8_t *s, mpz_t x)
     }
   
   if (length)
-    memset(dst, 0, length);
+    memset(s, 0, length);
 }
 
 void