]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/dialoged/src/reswrite.cpp
Fixed drawing of the lines data, also ensure that only tuples are
[wxWidgets.git] / utils / dialoged / src / reswrite.cpp
index c195aceea395b7377e6d68357244c6b3f8272a47..70b1dbf1bc1ba0a163a20c386f1aa07ba3d79da0 100644 (file)
@@ -36,9 +36,7 @@
 
 #include "reseditr.h"
 
-#if ( !defined(__WXMSW__) && defined(__WXMAC__) ) || defined( __VMS )
-static char wxBuffer[512];
-#endif
+static char deBuffer[512];
 
 char *SafeString(char *s);
 char *SafeWord(const wxString& s);
@@ -573,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;
     }
 }
 
@@ -590,7 +588,7 @@ char *SafeWord(const wxString& s)
         return "''";
     else
     {
-        dp = wxBuffer;
+        dp = deBuffer;
         cp = s.c_str();
         *dp++ = '\'';
         while(*cp != 0) {
@@ -608,7 +606,7 @@ char *SafeWord(const wxString& s)
         *dp++ = '\'';
         *dp++ = 0;
         
-        return wxBuffer;
+        return deBuffer;
     }
 }