changeset 261:588a453e1c9a

fixed dstress.c segfault
author thomask
date Thu, 03 Feb 2005 15:22:43 +0000
parents c47a1fee9989
children d5c7047203a8
files dstress.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dstress.c	Thu Feb 03 15:10:53 2005 +0000
+++ b/dstress.c	Thu Feb 03 15:22:43 2005 +0000
@@ -293,6 +293,7 @@
 		}
 		
 		/* test 2/2 */
+		cmd = malloc(strlen(arg[2]) + strlen(TLOG) + 24);
 		*cmd = '\x00';
 		strcat(cmd, arg[2]);
 		strcat(cmd, ".exe 1> ");