From 0cceb0cb3e36df03b32531222005e29fdd84fb4a Mon Sep 17 00:00:00 2001 From: smatz Date: Fri, 4 Apr 2008 00:06:51 +0000 Subject: (svn r12557) -Cleanup: use MAX_PATH at two more places --- src/music.cpp | 1 + src/music.h | 2 +- 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; -- cgit v1.2.3-70-g09d2