summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-04-04 00:06:51 +0000
committersmatz <smatz@openttd.org>2008-04-04 00:06:51 +0000
commit110584808dbab13bb8ed7f4e89578ee051d9d1ee (patch)
tree7185ddfb64434ca05d28d959f54aa9d50da947e6
parentc745ca21a3558f8f587296b3a88f755363965baa (diff)
downloadopenttd-110584808dbab13bb8ed7f4e89578ee051d9d1ee.tar.xz
(svn r12557) -Cleanup: use MAX_PATH at two more places
-rw-r--r--src/music.cpp1
-rw-r--r--src/music.h2
-rw-r--r--src/strgen/strgen.cpp2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/music.cpp b/src/music.cpp
index 7698fd9e1..ac10097ba 100644
--- a/src/music.cpp
+++ b/src/music.cpp
@@ -2,6 +2,7 @@
/** @file music.cpp */
+#include "stdafx.h"
#include "music.h"
const SongSpecs origin_songs_specs[NUM_SONGS_AVAILABLE] = {
diff --git a/src/music.h b/src/music.h
index dbb5214aa..a7a4c388a 100644
--- a/src/music.h
+++ b/src/music.h
@@ -9,7 +9,7 @@
#define NUM_SONGS_AVAILABLE 22
struct SongSpecs {
- char filename[256];
+ char filename[MAX_PATH];
char song_name[64];
};
diff --git a/src/strgen/strgen.cpp b/src/strgen/strgen.cpp
index d05f0e796..7ace1f1ea 100644
--- a/src/strgen/strgen.cpp
+++ b/src/strgen/strgen.cpp
@@ -1287,7 +1287,7 @@ static inline char *replace_pathsep(char *s) { return s; }
int CDECL main(int argc, char* argv[])
{
- char pathbuf[256];
+ char pathbuf[MAX_PATH];
const char *src_dir = ".";
const char *dest_dir = NULL;