diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2011-05-05 05:10:06 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2011-05-05 05:10:06 +0000 |
commit | f20f56c4f36dfdac81218436cc19c5a6c0b3cc79 (patch) | |
tree | a6c14b605d1e69cfb4a55bfd3baf840367115c75 /pjlib-util | |
parent | 343c2d795a16550e42e99ae8c0b20ccbc8fa2f25 (diff) |
Re #1175: Set SVN properties for several files: keywords=id and eol-style=native
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3549 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib-util')
-rw-r--r-- | pjlib-util/src/pjlib-util/sha1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pjlib-util/src/pjlib-util/sha1.c b/pjlib-util/src/pjlib-util/sha1.c index afdbff2d..d36e34e0 100644 --- a/pjlib-util/src/pjlib-util/sha1.c +++ b/pjlib-util/src/pjlib-util/sha1.c @@ -214,8 +214,8 @@ PJ_DEF(void) pj_sha1_update(pj_sha1_context* context, if ((j + len) > 63) { pj_memcpy(&context->buffer[j], data, (i = 64-j)); SHA1_Transform(context->state, context->buffer); - for ( ; i + 63 < len; i += 64) {
- pj_uint8_t tmp[64];
+ for ( ; i + 63 < len; i += 64) { + pj_uint8_t tmp[64]; pj_memcpy(tmp, data + i, 64); SHA1_Transform(context->state, tmp); } |