fix a crash when talking to the Ur-Quan drone on 64-bit Linux

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3782 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
mcmartin
2013-09-23 09:20:31 +00:00
parent 6667b7cc95
commit 0851e23c8e
+4 -4
View File
@@ -108,15 +108,15 @@ _GetConversationData (const char *path, RESOURCE_DATA *resdata)
DWORD slen[MAX_STRINGS]; DWORD slen[MAX_STRINGS];
// Length of each of the dialog strings. // Length of each of the dialog strings.
DWORD StringOffs; DWORD StringOffs;
DWORD tot_string_size; size_t tot_string_size;
DWORD clen[MAX_STRINGS]; DWORD clen[MAX_STRINGS];
// Length of each of the speech file names. // Length of each of the speech file names.
DWORD ClipOffs; DWORD ClipOffs;
DWORD tot_clip_size; size_t tot_clip_size;
DWORD tslen[MAX_STRINGS]; DWORD tslen[MAX_STRINGS];
// Length of each of the timestamp strings. // Length of each of the timestamp strings.
DWORD TSOffs; DWORD TSOffs;
DWORD tot_ts_size = 0; size_t tot_ts_size = 0;
char CurrentLine[1024]; char CurrentLine[1024];
char paths[1024]; char paths[1024];
char *clip_path; char *clip_path;
@@ -423,7 +423,7 @@ _GetStringData (uio_Stream *fp, DWORD length)
DWORD opos; DWORD opos;
DWORD slen[MAX_STRINGS]; DWORD slen[MAX_STRINGS];
DWORD StringOffs; DWORD StringOffs;
DWORD tot_string_size; size_t tot_string_size;
char CurrentLine[1024]; char CurrentLine[1024];
char *strdata = NULL; char *strdata = NULL;