diff options
| author | Jeffrey Armstrong <jeffrey.armstrong@approximatrix.com> | 2014-01-07 20:27:07 -0500 |
|---|---|---|
| committer | Jeffrey Armstrong <jeffrey.armstrong@approximatrix.com> | 2014-01-07 20:27:07 -0500 |
| commit | ffe739eeb12d1bf9dadb2144e95fef79820c6844 (patch) | |
| tree | 71bc466fa3d8be3c2d3c197388c49a2a3dda3907 /rfile.c | |
| parent | be58b862309fabfae996b94c441bf778b09df463 (diff) | |
| download | prism-ffe739eeb12d1bf9dadb2144e95fef79820c6844.tar.gz prism-ffe739eeb12d1bf9dadb2144e95fef79820c6844.zip | |
Fixed possible unterminated strings in hash handling in commit code.
Diffstat (limited to 'rfile.c')
| -rw-r--r-- | rfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -46,6 +46,8 @@ int i; MD5_Final(buf, &hb);
+ memset(hash, 0, HASH_BYTES);
+
for(i=0; i<16; i++) {
hash[2*i] = hex_str[buf[i] >> 4];
hash[2*i+1] = hex_str[buf[i] & 0x0F];
|
