openbsd-ports/net/dctc/patches/patch-src_md_c
naddy f67f6898c6 Import dctc 0.68.0; submitted by Nils Nordman <nino@nforced.com>.
DCTC is a Direct Connect clone, allowing users to share their files
and talk (like IRC but more software sharing oriented) using a
proprietary protocol.
2002-01-31 12:21:53 +00:00

13 lines
401 B
Plaintext

$OpenBSD: patch-src_md_c,v 1.1.1.1 2002/01/31 12:21:54 naddy Exp $
--- src/md.c.orig Mon Jan 28 17:00:06 2002
+++ src/md.c Mon Jan 28 17:00:51 2002
@@ -222,7 +222,7 @@ void md5tostr(const unsigned char md5sum
for(i=0;i<MD5SUMLEN;i++)
{
unsigned int v=md5sum[i];
- sprintf(str+3*i,"%1u%1u%1u",v/100,(v%100)/10,v%10);
+ snprintf(str+3*i,sizeof(str),"%1u%1u%1u",v/100,(v%100)/10,v%10);
}
}