diff dmd/codegen/linkhelper.d @ 182:b64060ab22df

Now compileable with dmd2.050
author korDen
date Sat, 30 Oct 2010 05:05:32 +0400
parents b7b61140701d
children
line wrap: on
line diff
--- a/dmd/codegen/linkhelper.d	Mon Oct 18 00:36:44 2010 +0400
+++ b/dmd/codegen/linkhelper.d	Sat Oct 30 05:05:32 2010 +0400
@@ -24,9 +24,9 @@
 		va_start(ap, format);
 		
 		char buf[1024];
-		vsprintf(buf.ptr, format, ap);
+		int len = vsprintf(buf.ptr, format, ap);
 		va_end( ap );
 		
-		dmd.Util.error(loc, to!string(buf));
+		dmd.Util.error(loc, buf[0..len].idup);
 	}
 }