aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flattr_ed.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2004-11-07 03:30:45 +0000
committerThomas Grill <xovo@users.sourceforge.net>2004-11-07 03:30:45 +0000
commit6b99ec44dddb17696825702fecbbf28c5c758e43 (patch)
tree724590c5c38b8d641c311ffb937045632a67dd36 /externals/grill/flext/source/flattr_ed.cpp
parent981f641ef44fe4d72dcb0e1248a2f96ba53cee69 (diff)
more character escaping for attribute editor
made queue length longer and added overflow checks reoccuring fix.... svn path=/trunk/; revision=2231
Diffstat (limited to 'externals/grill/flext/source/flattr_ed.cpp')
-rw-r--r--externals/grill/flext/source/flattr_ed.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/externals/grill/flext/source/flattr_ed.cpp b/externals/grill/flext/source/flattr_ed.cpp
index cbc7f08c..941465cc 100644
--- a/externals/grill/flext/source/flattr_ed.cpp
+++ b/externals/grill/flext/source/flattr_ed.cpp
@@ -427,7 +427,8 @@ void flext_base::SetAttrEditor(t_classid c)
static size_t escapeit(char *dst,size_t maxlen,const char *src)
{
int ret = 0;
- for(char *d = dst; *src && (d-dst) < (int)maxlen; ++src) {
+ char *d;
+ for(d = dst; *src && (d-dst) < (int)maxlen; ++src) {
if(*src == '%')
*(d++) = '%',*(d++) = '%';
else