From 0851e23c8e46d1007ca939967220592070d3923f Mon Sep 17 00:00:00 2001 From: mcmartin Date: Mon, 23 Sep 2013 09:20:31 +0000 Subject: [PATCH] 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 --- sc2/src/libs/strings/getstr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sc2/src/libs/strings/getstr.c b/sc2/src/libs/strings/getstr.c index 713e024dd..a74c649c2 100644 --- a/sc2/src/libs/strings/getstr.c +++ b/sc2/src/libs/strings/getstr.c @@ -108,15 +108,15 @@ _GetConversationData (const char *path, RESOURCE_DATA *resdata) DWORD slen[MAX_STRINGS]; // Length of each of the dialog strings. DWORD StringOffs; - DWORD tot_string_size; + size_t tot_string_size; DWORD clen[MAX_STRINGS]; // Length of each of the speech file names. DWORD ClipOffs; - DWORD tot_clip_size; + size_t tot_clip_size; DWORD tslen[MAX_STRINGS]; // Length of each of the timestamp strings. DWORD TSOffs; - DWORD tot_ts_size = 0; + size_t tot_ts_size = 0; char CurrentLine[1024]; char paths[1024]; char *clip_path; @@ -423,7 +423,7 @@ _GetStringData (uio_Stream *fp, DWORD length) DWORD opos; DWORD slen[MAX_STRINGS]; DWORD StringOffs; - DWORD tot_string_size; + size_t tot_string_size; char CurrentLine[1024]; char *strdata = NULL;