]> granicus.if.org Git - php/commitdiff
make make_digest() output a 16-byte string so that it wont break the internal PHP...
authorNuno Lopes <nlopess@php.net>
Sun, 27 May 2007 15:29:38 +0000 (15:29 +0000)
committerNuno Lopes <nlopess@php.net>
Sun, 27 May 2007 15:29:38 +0000 (15:29 +0000)
ext/standard/md5.c

index 6e3f90999126b3f502fb4e345a6b80179ceaaebf..e630844c1f6b66a15e305947fa21508f513e5a10 100644 (file)
@@ -28,7 +28,7 @@
 
 PHPAPI void make_digest(char *md5str, unsigned char *digest)
 {
-       make_digest_ex(md5str, digest, strlen(digest));
+       make_digest_ex(md5str, digest, 16);
 }
 
 PHPAPI void make_digest_ex(char *md5str, unsigned char *digest, int len)