X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..df93d8bab70358f8fec85098d83ab076424bae2e:/utils/dialoged/src/reswrite.cpp diff --git a/utils/dialoged/src/reswrite.cpp b/utils/dialoged/src/reswrite.cpp index 8e5588fe92..70b1dbf1bc 100644 --- a/utils/dialoged/src/reswrite.cpp +++ b/utils/dialoged/src/reswrite.cpp @@ -36,6 +36,8 @@ #include "reseditr.h" +static char deBuffer[512]; + char *SafeString(char *s); char *SafeWord(const wxString& s); @@ -569,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; } } @@ -586,7 +588,7 @@ char *SafeWord(const wxString& s) return "''"; else { - dp = wxBuffer; + dp = deBuffer; cp = s.c_str(); *dp++ = '\''; while(*cp != 0) { @@ -604,7 +606,7 @@ char *SafeWord(const wxString& s) *dp++ = '\''; *dp++ = 0; - return wxBuffer; + return deBuffer; } }