changeset 595:bbfb66c623e7

Fix output files being .d.bc. They're now .bc again.
author Christian Kamm <kamm incasoftware de>
date Sun, 14 Sep 2008 19:51:38 +0200
parents e096a1502428
children 1add138c9ba4
files dmd/module.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/dmd/module.c	Sun Sep 14 14:36:11 2008 +0200
+++ b/dmd/module.c	Sun Sep 14 19:51:38 2008 +0200
@@ -145,10 +145,9 @@
 		argobj = FileName::replaceName(argobj, toChars());
 
 	int clen = strlen(argobj);
-	char* tmp = (char *)alloca(clen + 2);
+	char* tmp = (char *)alloca(clen + 1);
 	memcpy(tmp, argobj, clen);
-	tmp[clen] = '.';
-	tmp[clen+1] = 0;
+	tmp[clen] = 0;
 	argobj = tmp;
     }