aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/FbString.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/FbTk/FbString.cc b/src/FbTk/FbString.cc
index 7a0ef1b..93f6aa7 100644
--- a/src/FbTk/FbString.cc
+++ b/src/FbTk/FbString.cc
@@ -130,6 +130,9 @@ std::string recode(iconv_t cd,
130 if (in.empty()) 130 if (in.empty())
131 return ""; 131 return "";
132 132
133 if (cd == ((iconv_t)(-1)))
134 return in; // can't convert
135
133 size_t insize = in.size(); 136 size_t insize = in.size();
134 size_t outsize = insize; 137 size_t outsize = insize;
135 char * out = (char *) malloc(outsize * sizeof(char)); // need realloc 138 char * out = (char *) malloc(outsize * sizeof(char)); // need realloc