diff options
author | jkim <jkim@FreeBSD.org> | 2013-03-28 10:24:17 +0800 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2013-03-28 10:24:17 +0800 |
commit | 95e0a2a17895e8eeb86d12b15c168050dc00c94e (patch) | |
tree | 6a62eb550a519dcf1cdf6d7a0add9f01c8e0914b /textproc | |
parent | 3b63b240277b4231ae0ed24827d800e38b6a532c (diff) | |
download | freebsd-ports-gnome-95e0a2a17895e8eeb86d12b15c168050dc00c94e.tar.gz freebsd-ports-gnome-95e0a2a17895e8eeb86d12b15c168050dc00c94e.tar.zst freebsd-ports-gnome-95e0a2a17895e8eeb86d12b15c168050dc00c94e.zip |
A minor style tweak.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/clucene/files/patch-src__core__CLucene__util__MD5Digester.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/textproc/clucene/files/patch-src__core__CLucene__util__MD5Digester.cpp b/textproc/clucene/files/patch-src__core__CLucene__util__MD5Digester.cpp index c354078b37ed..03b46e24f10c 100644 --- a/textproc/clucene/files/patch-src__core__CLucene__util__MD5Digester.cpp +++ b/textproc/clucene/files/patch-src__core__CLucene__util__MD5Digester.cpp @@ -1,5 +1,5 @@ --- src/core/CLucene/util/MD5Digester.cpp.orig 2011-03-16 20:21:07.000000000 -0400 -+++ src/core/CLucene/util/MD5Digester.cpp 2013-03-27 21:18:10.000000000 -0400 ++++ src/core/CLucene/util/MD5Digester.cpp 2013-03-27 22:19:22.000000000 -0400 @@ -72,18 +72,16 @@ // PrintMD5: Converts a completed md5 digest into a char* string. char* PrintMD5(uint8_t md5Digest[16]) @@ -7,13 +7,14 @@ - char chBuffer[256]; - char chEach[10]; + const char toHex[] = "0123456789abcdef"; -+ char chBuffer[16 * 2 + 1]; ++ char chBuffer[sizeof(md5Digest) * 2 + 1]; int nCount; - memset(chBuffer,0,256); - memset(chEach, 0, 10); - - for (nCount = 0; nCount < 16; nCount++) +- for (nCount = 0; nCount < 16; nCount++) ++ for (nCount = 0; nCount < sizeof(md5Digest); nCount++) { - cl_sprintf(chEach, 10, "%02x", md5Digest[nCount]); - strncat(chBuffer, chEach, sizeof(chEach)); |