diff trunk/src/dil/lexer/Lexer.d @ 742:fc8f0e61bc42

Fixed building of time_str.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Sat, 09 Feb 2008 18:53:59 +0100
parents f88b5285b86b
children 90668b83ae5e
line wrap: on
line diff
--- a/trunk/src/dil/lexer/Lexer.d	Sat Feb 09 16:18:53 2008 +0100
+++ b/trunk/src/dil/lexer/Lexer.d	Sat Feb 09 18:53:59 2008 +0100
@@ -142,7 +142,7 @@
       time_t time_val;
       time(&time_val);
       char* str = ctime(&time_val);
-      char[] time_str = str[0 .. strlen(str)];
+      char[] time_str = str[0 .. strlen(str)-1]; // -1 removes trailing '\n'.
       switch (t.kind)
       {
       case TOK.DATE: