--- datafiller.c.orig	Fri Aug 11 06:21:22 2006
+++ datafiller.c	Fri Aug 11 06:24:12 2006
@@ -30,7 +30,7 @@ void datafiller(char *p, int size)
 			perror("[datafiller] open()");
 			fd = 0; /* will retry to open the file for
 				 * the next packet */
-			memset(p, 'X', size);
+			if (p) memset(p, 'X', size);
 			return;
 		}
 	}
@@ -50,7 +50,7 @@ restart: /* if EOF occurs, after rewind,
 		perror("[datafiller] read()");
 		close(fd);
 		fd = 0; /* will retry to open the file for the next packet */
-		memset(p, 'X', size);
+		if (p) memset(p, 'X', size);
 		return;
 	}
 	else if (readed < size && opt_end == FALSE) {
