Index: uspace/srv/fs/tmpfs/tmpfs_ops.c
===================================================================
--- uspace/srv/fs/tmpfs/tmpfs_ops.c	(revision 222e57c481a930ed606fa55bd4deec869ae23d9c)
+++ uspace/srv/fs/tmpfs/tmpfs_ops.c	(revision 41a0d27303c8ba364f016cb27a8fb82af5194dac)
@@ -1,4 +1,4 @@
 /*
- * Copyright (c) 2007 Jakub Jermar
+ * Copyright (c) 2008 Jakub Jermar
  * All rights reserved.
  *
@@ -368,4 +368,6 @@
 		return;
 	}
+	/* Clear any newly allocated memory in order to emulate gaps.  */
+	memset(dentry->data + dentry->size, 0, delta);
 	dentry->size += delta;
 	dentry->data = newdata;
