diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2006-12-14 09:43:21 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2006-12-14 09:43:21 +0000 |
commit | adafbd4b9c793f4d5c04cb9bef11c63f31fa104e (patch) | |
tree | 3736437fbd4b5b41f0ed869feee8c3e7a9bcec11 /net-p2p | |
parent | 79411613025664e1b8e3611aa26707c00ef9b295 (diff) | |
download | ports-adafbd4b9c793f4d5c04cb9bef11c63f31fa104e.tar.gz ports-adafbd4b9c793f4d5c04cb9bef11c63f31fa104e.zip |
Notes
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/ed2k/files/patch-ed2k.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/net-p2p/ed2k/files/patch-ed2k.c b/net-p2p/ed2k/files/patch-ed2k.c index ce2a6d085069..9bb5559df8a7 100644 --- a/net-p2p/ed2k/files/patch-ed2k.c +++ b/net-p2p/ed2k/files/patch-ed2k.c @@ -1,5 +1,5 @@ --- ed2k.c.orig Sun Jun 13 19:47:20 2004 -+++ ed2k.c Sat Oct 7 20:04:07 2006 ++++ ed2k.c Thu Dec 14 10:40:21 2006 @@ -32,7 +32,7 @@ #include <sys/stat.h> @@ -40,7 +40,7 @@ static char *progname; -@@ -86,7 +97,7 @@ +@@ -86,16 +97,16 @@ } @@ -49,12 +49,14 @@ return ((q >= 10) ? 'W' : '0') + q; } -@@ -95,7 +106,7 @@ +-char *digest_str(void *digest) { ++char *digest_str(unsigned char *digest) { + static char internal_str[sizeof(md4_t)*2 + 1]; char *str = internal_str; int dsize = sizeof(md4_t); while (dsize--) { - unsigned char d = *((unsigned char *)digest)++; -+ unsigned char d = *(((unsigned char *)digest)++); ++ unsigned char d = *(digest++); *(str++) = hdigit(d >> 4 ); *(str++) = hdigit(d & 0xf); } |