From dd6c169994b371b8ce03147fed38c8d4fb52b109 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 31 Jul 2005 06:04:42 +0000 Subject: [PATCH] Fixed c_str() --- dlls/engine/CString.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/engine/CString.h b/dlls/engine/CString.h index ed280da0..4ecfa5d3 100755 --- a/dlls/engine/CString.h +++ b/dlls/engine/CString.h @@ -32,6 +32,8 @@ #ifndef _INCLUDE_CSTRING_H #define _INCLUDE_CSTRING_H +#include + //by David "BAILOPAN" Anderson class String { @@ -63,9 +65,9 @@ public: assign(src.c_str()); } - const char *c_str() { return v; } + const char *c_str() { return v?v:""; } - const char *c_str() const { return v; } + const char *c_str() const { return v?v:""; } void append(const char *t) {