X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c246bd7c41f112a3cdd9523668969ebb250b8cda..3684ade82ec6f5fb7ff72341e26060b6ea0793c8:/utils/dialoged/src/reswrite.cpp diff --git a/utils/dialoged/src/reswrite.cpp b/utils/dialoged/src/reswrite.cpp index a0a619c393..70b1dbf1bc 100644 --- a/utils/dialoged/src/reswrite.cpp +++ b/utils/dialoged/src/reswrite.cpp @@ -36,7 +36,7 @@ #include "reseditr.h" -static char wxBuffer[512]; +static char deBuffer[512]; char *SafeString(char *s); char *SafeWord(const wxString& s); @@ -571,10 +571,10 @@ char *SafeString(const wxString& s) return "NULL"; else { - strcpy(wxBuffer, "\""); - strcat(wxBuffer, s); - strcat(wxBuffer, "\""); - return wxBuffer; + strcpy(deBuffer, "\""); + strcat(deBuffer, s); + strcat(deBuffer, "\""); + return deBuffer; } } @@ -588,7 +588,7 @@ char *SafeWord(const wxString& s) return "''"; else { - dp = wxBuffer; + dp = deBuffer; cp = s.c_str(); *dp++ = '\''; while(*cp != 0) { @@ -606,7 +606,7 @@ char *SafeWord(const wxString& s) *dp++ = '\''; *dp++ = 0; - return wxBuffer; + return deBuffer; } }