| author | tron |
| Thu, 22 Feb 2007 15:01:38 +0000 | |
| changeset 6107 | 2a0a919dc46a |
| parent 6106 | 2898cd9417fd |
| child 6108 | c0929232db31 |
| src/newgrf.cpp | file | annotate | diff | comparison | revisions |
--- a/src/newgrf.cpp Thu Feb 22 08:43:02 2007 +0000 +++ b/src/newgrf.cpp Thu Feb 22 15:01:38 2007 +0000 @@ -2729,11 +2729,11 @@ * * V ignored Anything following the 0C is ignored */ - static char comment[256]; if (len == 1) return; - ttd_strlcpy(comment, (char*)(buf + 1), minu(sizeof(comment), len)); - grfmsg(2, "GRFComment: %s", comment); + int text_len = len - 1; + const char *text = (const char*)(buf + 1); + grfmsg(2, "GRFComment: %.*s", text_len, text); } /* Action 0x0D (GLS_SAFETYSCAN) */