diff options
author | smatz <smatz@openttd.org> | 2008-04-04 00:06:51 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-04-04 00:06:51 +0000 |
commit | 0cceb0cb3e36df03b32531222005e29fdd84fb4a (patch) | |
tree | 7185ddfb64434ca05d28d959f54aa9d50da947e6 /src | |
parent | 673055d27f2ff9b8b6acde4fb389f1bf32eced4b (diff) | |
download | openttd-0cceb0cb3e36df03b32531222005e29fdd84fb4a.tar.xz |
(svn r12557) -Cleanup: use MAX_PATH at two more places
Diffstat (limited to 'src')
-rw-r--r-- | src/music.cpp | 1 | ||||
-rw-r--r-- | src/music.h | 2 | ||||
-rw-r--r-- | src/strgen/strgen.cpp | 2 |
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; |