Index: trunk/src/sh_unix.c
===================================================================
--- trunk/src/sh_unix.c	(revision 435)
+++ trunk/src/sh_unix.c	(revision 436)
@@ -4002,4 +4002,7 @@
 	      if ((theFile->check_mask & MODI_SGROW) != 0)
 		{
+		  /* Update size so it matches the one for which the checksum
+		     has been computed */
+		  fbuf.st_size = length_current;
 		  buf.st_size  = fbuf.st_size;
 		  sl_rewind(rval_open);
@@ -4056,4 +4059,7 @@
 	      if ((theFile->check_mask & MODI_SGROW) != 0) 
 		{
+		  /* Update size so it matches the one for which the checksum
+		     has been computed */
+		  fbuf.st_size = length_current;
 		  buf.st_size  = fbuf.st_size;
 		  sl_rewind(rval_open);
