summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newgrf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/newgrf.c b/newgrf.c
index c38b4786a..93339ad80 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -15,6 +15,7 @@
#include "sprite.h"
#include "newgrf.h"
#include "variables.h"
+#include "string.h"
#include "bridge.h"
#include "economy.h"
#include "newgrf_engine.h"
@@ -2319,7 +2320,7 @@ static void DefineGotoLabel(byte *buf, int len)
GRFLabel *label;
- check_length(len, 1, "GRFLabel");
+ check_length(len, 1, "DefineGotoLabel");
buf++; len--;
label = malloc(sizeof(*label));