From: asterix Date: Tue, 13 Feb 2007 15:11:37 +0000 (+0000) Subject: Typo. X-Git-Tag: 1.0.0~458 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=1d537478faaa8cd851b0e325890d2a5c4c0e144b;p=bertos.git Typo. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@783 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/algos/randpool.c b/algos/randpool.c index b7681d26..e1301f58 100755 --- a/algos/randpool.c +++ b/algos/randpool.c @@ -13,8 +13,8 @@ /*#* *#* $Log$ - *#* Revision 1.15 2007/02/13 15:09:19 asterix - *#* Fix bug in randpool_getN. + *#* Revision 1.16 2007/02/13 15:11:37 asterix + *#* Typo. *#* *#* Revision 1.14 2007/02/13 09:57:12 asterix *#* Add directive #if in struct EntropyPool, and remove #else in randpool_add. @@ -233,7 +233,7 @@ void randpool_getN(EntropyPool *pool, void *_data, size_t n_byte) /*Hash previous state of pool*/ md2_update(&context, &pool->pool_entropy[i], CONFIG_MD2_BLOCK_LEN); - memcpy(&data[prev], md2_end(&context), len); + memcpy(&data[pos_write], md2_end(&context), len); pos_write += len; //Update number of block has been written in data. n -= len; //Number of byte copied in data.