From a515202943e0fc760df1ebdbdcaefbbc6f4d056d Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Tue, 9 Apr 2019 01:54:00 +0200 Subject: [PATCH] Apply MAX_SEND_STR_LEN --- Source/control.cpp | 2 +- Source/error.cpp | 2 +- Source/error.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/control.cpp b/Source/control.cpp index 0af2d3a2f..5a0fcaec3 100644 --- a/Source/control.cpp +++ b/Source/control.cpp @@ -18,7 +18,7 @@ char sgszTalkSave[8][80]; int dropGoldValue; // idb BOOL drawmanaflag; // idb BOOL chrbtnactive; -char sgszTalkMsg[80]; +char sgszTalkMsg[MAX_SEND_STR_LEN]; BYTE *pPanelText; int frame_4B8800; // idb BYTE *pLifeBuff; diff --git a/Source/error.cpp b/Source/error.cpp index d4ae5e3d2..1056b1c9a 100644 --- a/Source/error.cpp +++ b/Source/error.cpp @@ -2,7 +2,7 @@ #include "../types.h" -char msgtable[80]; +char msgtable[MAX_SEND_STR_LEN]; char msgdelay; char msgflag; char msgcnt; diff --git a/Source/error.h b/Source/error.h index 333fdd647..0234401de 100644 --- a/Source/error.h +++ b/Source/error.h @@ -2,7 +2,7 @@ #ifndef __ERROR_H__ #define __ERROR_H__ -extern char msgtable[80]; +extern char msgtable[MAX_SEND_STR_LEN]; extern char msgdelay; extern char msgflag; extern char msgcnt;