diff options
author | peter1138 <peter1138@openttd.org> | 2006-04-16 20:24:10 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-04-16 20:24:10 +0000 |
commit | e3cd311d35f85805dd4be95f2c72b2685b10e7f4 (patch) | |
tree | 7ea8d6607282d079ee013921cc3959317499dc11 | |
parent | 276672862992b21db488fd1fb15db879a2694de8 (diff) | |
download | openttd-e3cd311d35f85805dd4be95f2c72b2685b10e7f4.tar.xz |
(svn r4453) - NewGRF: fix two compile warnings.
-rw-r--r-- | newgrf.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -935,7 +935,6 @@ static bool StationChangeInfo(uint stid, int numinfo, int prop, byte **bufp, int l--; p--; - assert(p >= 0); free(stat->layouts[l][p]); stat->layouts[l][p] = layout; } @@ -2096,7 +2095,7 @@ static void GRFComment(byte *buf, int len) static char comment[256]; if (len == 1) return; - ttd_strlcpy(comment, buf + 1, minu(sizeof(comment), len)); + ttd_strlcpy(comment, (char*)(buf + 1), minu(sizeof(comment), len)); grfmsg(GMS_NOTICE, "GRFComment: %s", comment); } |