summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 385525be8..dbc4fc5b4 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -2363,7 +2363,7 @@ int map_waterheight(char *mapname) {
//Look up for the rsw
sprintf(fn,"data\\%s",mapname);
- strcpy(fn,grfio_find_file(fn));
+ sprintf(fn,"data\\%s",grfio_find_file(fn));
rsw = strstr(fn, ".");
if (rsw && strstr(fn, ".rsw") == NULL)