diff src/md5-util.c @ 435:6802aeeed196

Use sizeof() for buffer size where appropriate.
author zas_
date Sat, 19 Apr 2008 22:32:07 +0000
parents f6e307c7bad6
children 4b2d7f9af171
line wrap: on
line diff
--- a/src/md5-util.c	Sat Apr 19 21:50:05 2008 +0000
+++ b/src/md5-util.c	Sat Apr 19 22:32:07 2008 +0000
@@ -349,7 +349,7 @@
 
 	md5_init(&ctx);
 	
-	while ((nb_bytes_read = fread (tmp_buf, sizeof (guchar), 1024, fp)) > 0)
+	while ((nb_bytes_read = fread (tmp_buf, sizeof (guchar), sizeof(tmp_buf), fp)) > 0)
 		{
 		md5_update (&ctx, tmp_buf, nb_bytes_read);
 		}