Mercurial > projects > ldc
comparison dmd/module.c @ 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 | 7824c21a58e3 |
children | 8cc0c46064b1 |
comparison
equal
deleted
inserted
replaced
594:e096a1502428 | 595:bbfb66c623e7 |
---|---|
143 argobj = FileName::replaceName(argobj, md->toChars()); | 143 argobj = FileName::replaceName(argobj, md->toChars()); |
144 else | 144 else |
145 argobj = FileName::replaceName(argobj, toChars()); | 145 argobj = FileName::replaceName(argobj, toChars()); |
146 | 146 |
147 int clen = strlen(argobj); | 147 int clen = strlen(argobj); |
148 char* tmp = (char *)alloca(clen + 2); | 148 char* tmp = (char *)alloca(clen + 1); |
149 memcpy(tmp, argobj, clen); | 149 memcpy(tmp, argobj, clen); |
150 tmp[clen] = '.'; | 150 tmp[clen] = 0; |
151 tmp[clen+1] = 0; | |
152 argobj = tmp; | 151 argobj = tmp; |
153 } | 152 } |
154 | 153 |
155 if (!FileName::absolute(argobj)) | 154 if (!FileName::absolute(argobj)) |
156 { | 155 { |